2019-01-17 02:02:56 +00:00
|
|
|
From 35825baa82a8299fad1d27c71fec87d7b7ad8d4c Mon Sep 17 00:00:00 2001
|
2018-10-12 07:09:53 +00:00
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Fri, 12 Oct 2018 01:37:22 -0500
|
|
|
|
Subject: [PATCH] Here's Johnny!
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityVindicator.java b/src/main/java/net/minecraft/server/EntityVindicator.java
|
2019-01-17 02:02:56 +00:00
|
|
|
index 96d0651e9b..4bbb4817b1 100644
|
2018-10-12 07:09:53 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityVindicator.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityVindicator.java
|
2019-01-01 03:15:55 +00:00
|
|
|
@@ -5,7 +5,7 @@ import javax.annotation.Nullable;
|
2018-10-12 07:09:53 +00:00
|
|
|
|
|
|
|
public class EntityVindicator extends EntityIllagerAbstract {
|
2019-01-01 03:15:55 +00:00
|
|
|
|
2018-10-12 07:09:53 +00:00
|
|
|
- private boolean b;
|
|
|
|
+ private boolean b; public boolean isJohnny() { return b; } public void setJohnny(boolean johnny) { b = johnny; } // Paper - OBFHELPER
|
|
|
|
private static final Predicate<Entity> c = (entity) -> {
|
2019-01-01 03:15:55 +00:00
|
|
|
return entity instanceof EntityLiving && ((EntityLiving) entity).df();
|
2018-10-12 07:09:53 +00:00
|
|
|
};
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
|
2019-01-17 02:02:56 +00:00
|
|
|
index 951d479298..5ff957ced7 100644
|
2018-10-12 07:09:53 +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
|
|
|
|
}
|
|
|
|
--
|
2019-01-01 03:15:55 +00:00
|
|
|
2.20.1
|
2018-10-12 07:09:53 +00:00
|
|
|
|