mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fix typo
This commit is contained in:
parent
e6daed40da
commit
65c0ae60f8
1 changed files with 8 additions and 8 deletions
|
@ -19,7 +19,7 @@ public interface CloudInteractionContext {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
default boolean isPegasis() {
|
default boolean isPegasus() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,8 +42,8 @@ public interface CloudInteractionContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
default boolean isPegasis() {
|
default boolean isPegasus() {
|
||||||
return getCloudInteractionContext().isPegasis();
|
return getCloudInteractionContext().isPegasus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -66,13 +66,13 @@ public interface CloudInteractionContext {
|
||||||
private static final CloudInteractionContext EMPTY = type -> true;
|
private static final CloudInteractionContext EMPTY = type -> true;
|
||||||
|
|
||||||
private final boolean isPlayer;
|
private final boolean isPlayer;
|
||||||
private final boolean isPegasis;
|
private final boolean isPegasus;
|
||||||
|
|
||||||
private ItemStack main = ItemStack.EMPTY;
|
private ItemStack main = ItemStack.EMPTY;
|
||||||
|
|
||||||
private Impl(Entity entity) {
|
private Impl(Entity entity) {
|
||||||
this.isPlayer = EquinePredicates.IS_PLAYER.test(entity);
|
this.isPlayer = EquinePredicates.IS_PLAYER.test(entity);
|
||||||
this.isPegasis = EquinePredicates.ENTITY_INTERACT_WITH_CLOUD_BLOCKS.test(entity);
|
this.isPegasus = EquinePredicates.ENTITY_INTERACT_WITH_CLOUD_BLOCKS.test(entity);
|
||||||
|
|
||||||
if (entity instanceof LivingEntity) {
|
if (entity instanceof LivingEntity) {
|
||||||
main = ((LivingEntity)entity).getMainHandStack();
|
main = ((LivingEntity)entity).getMainHandStack();
|
||||||
|
@ -88,13 +88,13 @@ public interface CloudInteractionContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isPegasis() {
|
public boolean isPegasus() {
|
||||||
return isPegasis;
|
return isPegasus;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canTouch(GasState type) {
|
public boolean canTouch(GasState type) {
|
||||||
return type.isTouchable(isPlayer(), isPegasis());
|
return type.isTouchable(isPlayer(), isPegasus());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue