From ea60181a87dd8ca47e5c0742a3b6a8dc5178a870 Mon Sep 17 00:00:00 2001 From: aPunch Date: Thu, 8 Mar 2012 20:20:15 -0600 Subject: [PATCH] [Bleeding] Added way to get/set if Iron Golem was player created. Addresses BUKKIT-1229 --- .../org/bukkit/craftbukkit/entity/CraftIronGolem.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java index 39f97e4745..e8a8a6ba08 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java @@ -20,6 +20,14 @@ public class CraftIronGolem extends CraftGolem implements IronGolem { return "CraftIronGolem"; } + public boolean isPlayerCreated() { + return getHandle().n_(); + } + + public void setPlayerCreated(boolean playerCreated) { + getHandle().b(playerCreated); + } + @Override public EntityType getType() { return EntityType.IRON_GOLEM;