Interface IronGolem

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, Golem, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface IronGolem extends Golem
An iron Golem that protects Villages.
  • Method Details

    • isPlayerCreated

      boolean isPlayerCreated()
      Gets whether this iron golem was built by a player.
      Returns:
      Whether this iron golem was built by a player
    • setPlayerCreated

      void setPlayerCreated(boolean playerCreated)
      Sets whether this iron golem was built by a player or not.
      Parameters:
      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.