mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-10 22:05:10 +01:00
#374: Add isJohnny / setJohnny for Vindicator
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
179dbe9592
commit
1fa87773be
@ -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);
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user