diff options
author | aPunch <alexpuncochar@yahoo.com> | 2012-03-08 20:20:15 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-20 05:13:36 -0400 |
commit | ea60181a87dd8ca47e5c0742a3b6a8dc5178a870 (patch) | |
tree | 275a459b6a3b39e397b229b7978c651ce159010b | |
parent | 68b98d4c8fab36d5b139b3a404069d5b99d56886 (diff) | |
download | craftbukkit-ea60181a87dd8ca47e5c0742a3b6a8dc5178a870.tar craftbukkit-ea60181a87dd8ca47e5c0742a3b6a8dc5178a870.tar.gz craftbukkit-ea60181a87dd8ca47e5c0742a3b6a8dc5178a870.tar.lz craftbukkit-ea60181a87dd8ca47e5c0742a3b6a8dc5178a870.tar.xz craftbukkit-ea60181a87dd8ca47e5c0742a3b6a8dc5178a870.zip |
[Bleeding] Added way to get/set if Iron Golem was player created. Addresses BUKKIT-1229
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftIronGolem.java index 39f97e47..e8a8a6ba 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; |