Interface IronGolem

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Creature, Damageable, Entity, Frictional, Golem, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, ProjectileSource, ServerOperator, net.kyori.adventure.sound.Sound.Emitter

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

    • isPlayerCreated Link icon

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

      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.