This commit is contained in:
Sollace 2020-06-02 13:40:33 +02:00
parent e6daed40da
commit 65c0ae60f8

View file

@ -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