diff --git a/paper-api/src/main/java/org/bukkit/entity/IronGolem.java b/paper-api/src/main/java/org/bukkit/entity/IronGolem.java index 16a35e68c3..04290eb6f2 100644 --- a/paper-api/src/main/java/org/bukkit/entity/IronGolem.java +++ b/paper-api/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); }