Enum Class StatusType

java.lang.Object
java.lang.Enum<StatusType>
games.stendhal.server.entity.status.StatusType
All Implemented Interfaces:
Serializable, Comparable<StatusType>, Constable

public enum StatusType extends Enum<StatusType>
types of statuses
Author:
hendrik
  • Enum Constant Details

    • CONFUSED

      public static final StatusType CONFUSED
      cannot walk straight
    • EATING

      public static final StatusType EATING
      is consuming food
    • POISONED

      public static final StatusType POISONED
      is consuming poison
    • SHOCKED

      public static final StatusType SHOCKED
      cannot move
    • DRUNK

      public static final StatusType DRUNK
      drunk and not able to speak clearly
    • ZOMBIE

      public static final StatusType ZOMBIE
      reduced movement speed
    • HEAVY

      public static final StatusType HEAVY
      reduced movement speed
  • Method Details

    • values

      public static StatusType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StatusType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
      gets the name of the status type
      Returns:
      name
    • getStatusHandler

      public <T extends Status> StatusHandler<T> getStatusHandler()
      get status handler
      Returns:
      StatusHandler
    • parse

      public static StatusType parse(String status)
      Retrieve StatusType for creating status resistant items
      Parameters:
      status - Name of the status. e.g. PoisonStatus
      Returns:
      StatusType