Interface Warden

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

public interface Warden extends Monster
A Warden.
  • Method Details

    • getAnger

      int getAnger(@NotNull @NotNull Entity entity)
      Gets the anger level of this warden. Anger is an integer from 0 to 150. Once a Warden reaches 80 anger at a target it will actively pursue it.
      Parameters:
      entity - target
      Returns:
      anger level
    • increaseAnger

      void increaseAnger(@NotNull @NotNull Entity entity, int increase)
      Increases the anger level of this warden.
      Parameters:
      entity - target
      increase - number to increase by
      See Also:
    • setAnger

      void setAnger(@NotNull @NotNull Entity entity, int anger)
      Sets the anger level of this warden.
      Parameters:
      entity - target
      anger - new anger level
      See Also: