Enum UpgradeShopOpenCause

java.lang.Object
java.lang.Enum<UpgradeShopOpenCause>
de.marcely.bedwars.api.game.upgrade.UpgradeShopOpenCause
All Implemented Interfaces:
Serializable, Comparable<UpgradeShopOpenCause>, java.lang.constant.Constable

public enum UpgradeShopOpenCause extends Enum<UpgradeShopOpenCause>
Represents the causes of the opening of a upgrade shop.
  • Enum Constant Details

    • UPGRADE_DEALER

      public static final UpgradeShopOpenCause UPGRADE_DEALER
      Player clicked on an upgrade dealer that has been spawned with /bw summon upgradedealer
    • REFRESH

      public static final UpgradeShopOpenCause REFRESH
      The upgrade shop GUI has been refreshed.

      Refreshes may happen if a team member buys an upgrade, or trap was triggered.

    • COMMAND

      public static final UpgradeShopOpenCause COMMAND
      A command opened the GUI
    • PLUGIN

      public static final UpgradeShopOpenCause PLUGIN
      A plugin opened the GUI
    • DEBUG

      @Deprecated public static final UpgradeShopOpenCause DEBUG
      Deprecated.
      This will be removed in the future as it has been replaced by /bw tools openupgradeshop
      Player used a debug command to open the upgrade shop
  • Method Details

    • values

      public static UpgradeShopOpenCause[] 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

      public static UpgradeShopOpenCause valueOf(String name)
      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 name
      NullPointerException - 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