001 package org.bukkit.entity;
002
003 /**
004 * An iron Golem that protects Villages.
005 */
006 public interface IronGolem extends Golem {
007
008 /**
009 * Gets whether this iron golem was built by a player.
010 *
011 * @return Whether this iron golem was built by a player
012 */
013 public boolean isPlayerCreated();
014
015 /**
016 * Sets whether this iron golem was built by a player or not.
017 *
018 * @param playerCreated true if you want to set the iron golem as being
019 * player created, false if you want it to be a natural village golem.
020 */
021 public void setPlayerCreated(boolean playerCreated);
022 }