Class CreatureProtectionArea.Entry

java.lang.Object
games.stendhal.server.entity.mapstuff.area.CreatureProtectionArea.Entry
Enclosing class:
CreatureProtectionArea

protected static class CreatureProtectionArea.Entry extends Object
An entry representing creature criteria.
  • Field Details

    • blocked

      protected boolean blocked
      Whether it should be blocked.
    • clazz

      protected String clazz
      The creature class to match.
    • subclazz

      protected String subclazz
      The creature subclass to match.
  • Constructor Details

    • Entry

      public Entry(String clazz, String subclazz, boolean blocked)
      Create a criteria entry.
      Parameters:
      clazz - A creature class to match (or null for any).
      subclazz - A creature subclass to match (or null for any).
      blocked - Whether it should be blocked.
  • Method Details

    • isBlocked

      public boolean isBlocked()
      Determine if a creature matching this criteria is blocked.
      Returns:
      true if it should be blocked.
    • matches

      public boolean matches(String clazz, String subclazz)
      Check if a class/subclass matches.
      Parameters:
      clazz -
      subclazz -
      Returns:
      true if both are equals to fields