Enum Class LostCause

java.lang.Object
java.lang.Enum<LostCause>
dev.drawethree.xprison.api.shared.currency.enums.LostCause
All Implemented Interfaces:
Serializable, Comparable<LostCause>, Constable

public enum LostCause extends Enum<LostCause>
Enum representing various reasons why a player might lose currency.
  • Enum Constant Details

    • PAY

      public static final LostCause PAY
      Player lost currency by using the pay command.
    • ENCHANT

      public static final LostCause ENCHANT
      Player lost currency by enchanting items.
    • PRESTIGE

      public static final LostCause PRESTIGE
      Player lost currency by prestiging.
    • RANKUP

      public static final LostCause RANKUP
      Player lost currency by ranking up.
    • ADMIN

      public static final LostCause ADMIN
      Player lost currency by an admin running a command affecting currency.
    • WITHDRAW

      public static final LostCause WITHDRAW
      Player lost currency by withdrawing it to physical form.
  • Method Details

    • values

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