2020-06-26 06:29:44 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Fri, 12 Oct 2018 01:37:22 -0500
|
|
|
|
Subject: [PATCH] Here's Johnny!
|
|
|
|
|
|
|
|
|
2021-03-16 07:19:45 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/monster/EntityVindicator.java b/src/main/java/net/minecraft/world/entity/monster/EntityVindicator.java
|
|
|
|
index c181d5f5e6108ade54fc97c665897d1db5e90719..c45dcb56af95f3e87e292b92b697a336461f01bc 100644
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/monster/EntityVindicator.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/monster/EntityVindicator.java
|
|
|
|
@@ -51,7 +51,7 @@ public class EntityVindicator extends EntityIllagerAbstract {
|
2020-06-26 06:29:44 +00:00
|
|
|
private static final Predicate<EnumDifficulty> b = (enumdifficulty) -> {
|
|
|
|
return enumdifficulty == EnumDifficulty.NORMAL || enumdifficulty == EnumDifficulty.HARD;
|
|
|
|
};
|
2020-08-25 02:22:08 +00:00
|
|
|
- private boolean bo;
|
|
|
|
+ private boolean bo; public boolean isJohnny() { return bo; } public void setJohnny(boolean johnny) { bo = johnny; } // Paper - OBFHELPER
|
2020-06-26 06:29:44 +00:00
|
|
|
|
|
|
|
public EntityVindicator(EntityTypes<? extends EntityVindicator> entitytypes, World world) {
|
|
|
|
super(entitytypes, world);
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
|
2021-03-16 07:19:45 +00:00
|
|
|
index e793820e1ede4bd4d31e6fe12ca8189707674ffe..b128e8291f2d7652a98f1271d763e33afa5de9f7 100644
|
2020-06-26 06:29:44 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
|
|
|
|
@@ -25,4 +25,14 @@ public class CraftVindicator extends CraftIllager implements Vindicator {
|
|
|
|
public EntityType getType() {
|
|
|
|
return EntityType.VINDICATOR;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Paper start
|
|
|
|
+ public boolean isJohnny() {
|
|
|
|
+ return getHandle().isJohnny();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setJohnny(boolean johnny) {
|
|
|
|
+ getHandle().setJohnny(johnny);
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
}
|