Interface IronGolem

All Superinterfaces:
Attributable, net.kyori.adventure.audience.Audience, CommandSender, Creature, Damageable, Entity, 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

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.