diff options
author | aPunch <alexpuncochar@yahoo.com> | 2012-03-08 20:22:11 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-20 05:13:22 -0400 |
commit | c74338d550b781931b0599046e349dbe36e0b3a6 (patch) | |
tree | 1d65651831222004426bbc7383d9a588afffe92f /src | |
parent | e4ca064cdc2a3e57ae817fd4d09e118f6464f46f (diff) | |
download | bukkit-c74338d550b781931b0599046e349dbe36e0b3a6.tar bukkit-c74338d550b781931b0599046e349dbe36e0b3a6.tar.gz bukkit-c74338d550b781931b0599046e349dbe36e0b3a6.tar.lz bukkit-c74338d550b781931b0599046e349dbe36e0b3a6.tar.xz bukkit-c74338d550b781931b0599046e349dbe36e0b3a6.zip |
[Bleeding] Added way to get/set if an Iron Golem was player created. Addresses BUKKIT-1229
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/IronGolem.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/IronGolem.java b/src/main/java/org/bukkit/entity/IronGolem.java index 16a35e68..04290eb6 100644 --- a/src/main/java/org/bukkit/entity/IronGolem.java +++ b/src/main/java/org/bukkit/entity/IronGolem.java @@ -5,4 +5,19 @@ package org.bukkit.entity; */ public interface IronGolem extends Golem { + /** + * Gets whether this iron golem was built by a player. + * + * @return Whether this iron golem was built by a player + */ + public boolean isPlayerCreated(); + + /** + * Sets whether this iron golem was built by a player or not. + * + * @param playerCreated + * true if you want to set the iron golem as being player created, + * false if you want it to be a natural village golem. + */ + public void setPlayerCreated(boolean playerCreated); } |