Package nl.minetopiasdb.api.boosters
Enum Class BoostType
- All Implemented Interfaces:
Serializable
,Comparable<BoostType>
,Constable
Class that holds the different types of boosters
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBossBarMSG
(org.bukkit.command.CommandSender sender) Get the bossbar message for the specific boosterorg.bukkit.boss.BarColor
getColor()
Get the bossbar color for the specified boosterGet the customizable booster name for this boosterint
Get the maximum boost that can be active.getMenuTitle
(org.bukkit.command.CommandSender sender) Get the menu title for the specific boosterboolean
Returns true if this booster is enabledstatic BoostType
Returns the enum constant of this class with the specified name.static BoostType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LUCKYSHARD
-
GOLDSHARD
-
GRAYSHARD
-
-
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
-
getColor
public org.bukkit.boss.BarColor getColor()Get the bossbar color for the specified booster- Returns:
- bossbar color for booster
-
getFullName
Get the customizable booster name for this booster- Returns:
- booster name
-
getMaxBooster
public int getMaxBooster()Get the maximum boost that can be active.- Returns:
- max boost
-
getMenuTitle
Get the menu title for the specific booster- Parameters:
sender
- commandsender needed to retrieve the message- Returns:
- menu title
-
getBossBarMSG
Get the bossbar message for the specific booster- Parameters:
sender
- commandsender needed to retrieve the message- Returns:
- bossbar message
-
isBoosterEnabled
public boolean isBoosterEnabled()Returns true if this booster is enabled- Returns:
- true if booster is enabled
-