Enum Class BoostType

java.lang.Object
java.lang.Enum<BoostType>
nl.minetopiasdb.api.boosters.BoostType
All Implemented Interfaces:
Serializable, Comparable<BoostType>, Constable

public enum BoostType extends Enum<BoostType>
Class that holds the different types of boosters
  • Enum Constant Details

    • LUCKYSHARD

      public static final BoostType LUCKYSHARD
    • GOLDSHARD

      public static final BoostType GOLDSHARD
    • GRAYSHARD

      public static final BoostType GRAYSHARD
  • Method Details

    • values

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

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

      public String 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

      public String getMenuTitle(org.bukkit.command.CommandSender sender)
      Get the menu title for the specific booster
      Parameters:
      sender - commandsender needed to retrieve the message
      Returns:
      menu title
    • getBossBarMSG

      public String getBossBarMSG(org.bukkit.command.CommandSender sender)
      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