Package eu.soupmc

Enum Class ExpAmount

All Implemented Interfaces:
Serializable, Comparable<ExpAmount>, java.lang.constant.Constable

public enum ExpAmount extends Enum<ExpAmount>
Enum to get the EXP of certain events. Usage: ExpAmount.BEDWARS.getXp() : int
  • Enum Constant Details

    • BEDWARS_WIN

      public static final ExpAmount BEDWARS_WIN
      The Exp of a Bedwars victory
    • BEDWARS

      public static final ExpAmount BEDWARS
      The Exp of a Bedwars defeat
    • MOLECRAFT_WIN

      public static final ExpAmount MOLECRAFT_WIN
      The Exp of a molecraft victory
    • MOLECRAFT

      public static final ExpAmount MOLECRAFT
      The Exp of a molecraft defeat
  • Field Details

    • expToGive

      protected int expToGive
      The Exp to give
  • Method Details

    • values

      public static ExpAmount[] 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 ExpAmount 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
    • getExp

      public int getExp()
      Method to get the protected var expToGive
      Returns:
      expToGive