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()
      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.
      Returns:
      anger level
    • 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 entity
      Returns:
      anger level
    • increaseAnger

      void increaseAnger(@NotNull Entity entity, int increase)
      Increases 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 entity
      increase - number to increase by
      See Also:
    • setAnger

      void setAnger(@NotNull Entity entity, int anger)
      Sets 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 entity
      anger - new anger level
      See Also:
    • clearAnger

      void clearAnger(@NotNull Entity entity)
      Clears the anger level of this warden.
      Parameters:
      entity - target entity
    • getEntityAngryAt

      @Nullable LivingEntity getEntityAngryAt()
      Gets the LivingEntity at which this warden is most angry.
      Returns:
      The target LivingEntity or null
    • setDisturbanceLocation

      void setDisturbanceLocation(@NotNull Location location)
      Make the warden sense a disturbance in the force at the location given.
      Parameters:
      location - location of the disturbance
    • getAngerLevel

      @NotNull Warden.AngerLevel getAngerLevel()
      Get the level of anger of this warden.
      Returns:
      The level of anger