Enum SpecialItemType

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

public enum SpecialItemType extends Enum<SpecialItemType>
  • Enum Constant Details

  • Method Details

    • values

      public static SpecialItemType[] 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 SpecialItemType 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
    • getItem

      @Nullable public @Nullable SpecialItem getItem()
      Returns the SpecialItem instance for the given type.

      Can return null if there's none.

      Returns:
      The corresponding item
    • getId

      @Nullable public @Nullable String getId()
      Returns the internal id of the type.

      Will return null when it's PLUGIN.

      Returns:
      The id of the type