Enum Class Macro

java.lang.Object
java.lang.Enum<Macro>
com.winterhavenmc.lodestar.util.Macro
All Implemented Interfaces:
Serializable, Comparable<Macro>, Constable

public enum Macro extends Enum<Macro>
Enum with entries for custom message string replacement placeholders
  • Enum Constant Details

    • DESTINATION

      public static final Macro DESTINATION
    • WORLD

      public static final Macro WORLD
    • ITEM

      public static final Macro ITEM
    • PLAYER

      public static final Macro PLAYER
    • DURATION

      public static final Macro DURATION
    • PAGE_NUMBER

      public static final Macro PAGE_NUMBER
    • PAGE_TOTAL

      public static final Macro PAGE_TOTAL
    • ITEM_NUMBER

      public static final Macro ITEM_NUMBER
    • FAIL_REASON

      public static final Macro FAIL_REASON
    • SETTING

      public static final Macro SETTING
    • URL

      public static final Macro URL
    • NUMBER_LOCALE

      public static final Macro NUMBER_LOCALE
    • DATE_LOCALE

      public static final Macro DATE_LOCALE
    • TIME_LOCALE

      public static final Macro TIME_LOCALE
    • LOG_LOCALE

      public static final Macro LOG_LOCALE
  • Method Details

    • values

      public static Macro[] 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 Macro 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