Interface Warden

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

public interface Warden extends Monster
A Warden.
  • Method Details

    • getAnger

      int getAnger(@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 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 Entity entity, int anger)
      Sets the anger level of this warden.
      Parameters:
      entity - target
      anger - new anger level
      See Also: