Interface IronGolem

All Superinterfaces:
Attributable, CommandSender, Creature, Damageable, Entity, Golem, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

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.