Enum UpgradeShopOpenCause
- All Implemented Interfaces:
Serializable
,Comparable<UpgradeShopOpenCause>
,java.lang.constant.Constable
Represents the causes of the opening of a upgrade shop.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA command opened the GUIDeprecated.This will be removed in the future as it has been replaced by /bw tools openupgradeshopA plugin opened the GUIThe upgrade shop GUI has been refreshed.Player clicked on an upgrade dealer that has been spawned with /bw summon upgradedealer -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get whether the player opened the shop for the first time and not by e.g. refreshing the GUI.static UpgradeShopOpenCause
Returns the enum constant of this type with the specified name.static UpgradeShopOpenCause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UPGRADE_DEALER
Player clicked on an upgrade dealer that has been spawned with /bw summon upgradedealer -
REFRESH
The upgrade shop GUI has been refreshed.Refreshes may happen if a team member buys an upgrade, or trap was triggered.
-
COMMAND
A command opened the GUI -
PLUGIN
A plugin opened the GUI -
DEBUG
Deprecated.This will be removed in the future as it has been replaced by /bw tools openupgradeshopPlayer used a debug command to open the upgrade shop
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
isInitial
public boolean isInitial()Get whether the player opened the shop for the first time and not by e.g. refreshing the GUI.- Returns:
true
if the player opened the shop for the first time
-