public class WardenMeta extends MonsterMeta
This metadata implementation can be used for a warden entity.
Since:
1.0.0
  • Field Details

  • Constructor Details

    • WardenMeta

      public WardenMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull Metadata metadata)
      Creates a new metadata which can be set to a warden entity.
      Parameters:
      entity - the warden entity reference
      metadata - the reference to a Metadata
  • Method Details

    • setAngerLevel

      public void setAngerLevel(int value)
      Set the anger level for a warden.
      Parameters:
      value - the level to set
    • getAngerLevel

      public int getAngerLevel()
      Returns the given anger level from the meta or zero as default value if no value is set.
      Returns:
      the given level