Enum Class God

All Implemented Interfaces:
Serializable, Comparable<God>, Constable

public enum God extends Enum<God>
Indicates whether or not a character is a normal player, a god, a bot or a mob or a shopkeeper.
Author:
maartenl
  • Enum Constant Details

    • DEFAULT_USER

      public static final God DEFAULT_USER
    • GOD

      public static final God GOD
      Means this user is an administrator/deputy of the mud.
    • BOT

      public static final God BOT
    • MOB

      public static final God MOB
    • SHOPKEEPER

      public static final God SHOPKEEPER
  • Method Details

    • values

      public static God[] 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 God 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
    • get

      public static God get(Integer value)
      Returns the enum based on a numerical value.
      Parameters:
      value -
      Returns:
      God enum, null if not found.
    • getValue

      public int getValue()
      Returns the numerical value of this enum.
      Returns:
      integer