Package de.marcely.bedwars.api.game.shop
Enum ShopOpenCause
- All Implemented Interfaces:
- Serializable,- Comparable<ShopOpenCause>,- java.lang.constant.Constable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionPlayer potentially didn't actually open the shop, he just bought a ShopItem via the API.Player changed the pageThe shop was opened using a commandPlayer clicked on a dealer that has been spawned with /bw summon dealerPlayer clicked on a dealer that has been spawned withSpecialItemType.MINI_SHOPA plugin opened the GUIPage has been refreshed (After a purchase)Player clicked on a normal villager hologram
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGet whether the player opened the shop for the first time and not by e.g. changing the page.static ShopOpenCauseReturns the enum constant of this type with the specified name.static ShopOpenCause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
DEALERPlayer clicked on a dealer that has been spawned with /bw summon dealer
- 
MINI_SHOPPlayer clicked on a dealer that has been spawned withSpecialItemType.MINI_SHOP
- 
VILLAGERPlayer clicked on a normal villager hologram
- 
CHANGE_PAGEPlayer changed the page
- 
REFRESHPage has been refreshed (After a purchase)
- 
COMMANDThe shop was opened using a command
- 
API_ITEM_BUYPlayer potentially didn't actually open the shop, he just bought a ShopItem via the API.Exists due to PlayerBuyInShopEvent.getOpenCause()andShopItem.buy(Player, boolean).
- 
PLUGINA plugin opened the GUI
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
isInitialpublic boolean isInitial()Get whether the player opened the shop for the first time and not by e.g. changing the page.- Returns:
- trueif the player opened the shop for the first time
 
 
-