2019-03-20 01:28:15 +01:00
|
|
|
From 9f55006a73e6cebd575002ed48f7fbf820a52a35 Mon Sep 17 00:00:00 2001
|
2018-10-12 09:09:53 +02: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-03-20 01:28:15 +01:00
|
|
|
index 96d0651e9..4bbb4817b 100644
|
2018-10-12 09:09:53 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityVindicator.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityVindicator.java
|
2019-01-01 04:15:55 +01:00
|
|
|
@@ -5,7 +5,7 @@ import javax.annotation.Nullable;
|
2018-10-12 09:09:53 +02:00
|
|
|
|
|
|
|
public class EntityVindicator extends EntityIllagerAbstract {
|
2019-01-01 04:15:55 +01:00
|
|
|
|
2018-10-12 09:09:53 +02: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 04:15:55 +01:00
|
|
|
return entity instanceof EntityLiving && ((EntityLiving) entity).df();
|
2018-10-12 09:09:53 +02:00
|
|
|
};
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVindicator.java
|
2019-03-20 01:28:15 +01:00
|
|
|
index 951d47929..5ff957ced 100644
|
2018-10-12 09:09:53 +02: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-03-20 01:28:15 +01:00
|
|
|
2.21.0
|
2018-10-12 09:09:53 +02:00
|
|
|
|