Interface IronGolem

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, Frictional, 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.
    • getSummoner

      @Nullable UUID getSummoner()
      Get the player that summoned this iron golem
      Returns:
      UUID of summoner
    • setSummoner

      void setSummoner(@Nullable UUID summoner)
      Set the player that summoned this iron golem
      Parameters:
      summoner - UUID of summoner