Enum Class Rune

java.lang.Object
java.lang.Enum<Rune>
dev.twilite.game.facade.Rune
All Implemented Interfaces:
Serializable, Comparable<Rune>, Constable

public enum Rune extends Enum<Rune>
Runes used by spell and rune pouch helpers.
  • Enum Constant Details

    • AIR

      public static final Rune AIR
    • WATER

      public static final Rune WATER
    • EARTH

      public static final Rune EARTH
    • FIRE

      public static final Rune FIRE
    • MIND

      public static final Rune MIND
    • CHAOS

      public static final Rune CHAOS
    • DEATH

      public static final Rune DEATH
    • BLOOD

      public static final Rune BLOOD
    • COSMIC

      public static final Rune COSMIC
    • NATURE

      public static final Rune NATURE
    • LAW

      public static final Rune LAW
    • BODY

      public static final Rune BODY
    • SOUL

      public static final Rune SOUL
    • ASTRAL

      public static final Rune ASTRAL
    • MIST

      public static final Rune MIST
    • MUD

      public static final Rune MUD
    • DUST

      public static final Rune DUST
    • LAVA

      public static final Rune LAVA
    • STEAM

      public static final Rune STEAM
    • SMOKE

      public static final Rune SMOKE
    • WRATH

      public static final Rune WRATH
    • SUNFIRE

      public static final Rune SUNFIRE
    • AETHER

      public static final Rune AETHER
  • Method Details

    • values

      public static Rune[] 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 Rune 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
    • itemId

      public int itemId()
    • fromItemId

      public static Optional<Rune> fromItemId(int itemId)