#374: Add isJohnny / setJohnny for Vindicator

This commit is contained in:
Matthew 2022-01-01 09:58:04 +11:00 committed by md_5
parent 19f2af066e
commit 752fa511a9
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/net/minecraft/world/entity/monster/EntityVindicator.java
+++ b/net/minecraft/world/entity/monster/EntityVindicator.java
@@ -52,7 +52,7 @@
static final Predicate<EnumDifficulty> DOOR_BREAKING_PREDICATE = (enumdifficulty) -> {
return enumdifficulty == EnumDifficulty.NORMAL || enumdifficulty == EnumDifficulty.HARD;
};
- boolean isJohnny;
+ public boolean isJohnny; // PAIL
public EntityVindicator(EntityTypes<? extends EntityVindicator> entitytypes, World world) {
super(entitytypes, world);

View File

@ -25,4 +25,14 @@ public class CraftVindicator extends CraftIllager implements Vindicator {
public EntityType getType() {
return EntityType.VINDICATOR;
}
@Override
public boolean isJohnny() {
return getHandle().isJohnny;
}
@Override
public void setJohnny(boolean johnny) {
getHandle().isJohnny = johnny;
}
}