接口 Warden

所有超级接口:
Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Warden extends Monster
监守者.
  • 方法详细资料

    • 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.
      返回:
      anger level
    • 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.
      参数:
      entity - target entity
      返回:
      anger level
    • increaseAnger

      void increaseAnger(@NotNull @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.
      参数:
      entity - target entity
      increase - number to increase by
      另请参阅:
    • setAnger

      void setAnger(@NotNull @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.
      参数:
      entity - target entity
      anger - new anger level
      另请参阅:
    • clearAnger

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

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

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

      Get the level of anger of this warden.
      返回:
      The level of anger