Package eu.soupmc
Enum Class ExpAmount
- All Implemented Interfaces:
Serializable,Comparable<ExpAmount>,java.lang.constant.Constable
Enum to get the EXP of certain events. Usage: ExpAmount.BEDWARS.getXp() : int
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Exp of a Bedwars defeatThe Exp of a Bedwars victoryThe Exp of a molecraft defeatThe Exp of a molecraft victory -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
BEDWARS_WIN
The Exp of a Bedwars victory -
BEDWARS
The Exp of a Bedwars defeat -
MOLECRAFT_WIN
The Exp of a molecraft victory -
MOLECRAFT
The Exp of a molecraft defeat
-
-
Field Details
-
expToGive
protected int expToGiveThe Exp to give
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getExp
public int getExp()Method to get the protected var expToGive- Returns:
- expToGive
-