Enum SpecialItemType
- All Implemented Interfaces:
Serializable,Comparable<SpecialItemType>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetId()Returns the internal id of the type.@Nullable SpecialItemgetItem()Returns the SpecialItem instance for the given type.static SpecialItemTypeReturns the enum constant of this type with the specified name.static SpecialItemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TELEPORTER
-
MINI_SHOP
-
RESCUE_PLATFORM
-
TNT_SHEEP
-
MAGNETIC_SHOES
-
TRAP
-
BRIDGE
-
GUARD_DOG
-
TRACKER
-
FIREBALL
-
MAGIC_MILK
-
PLUGIN
-
-
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
-
getItem
Returns the SpecialItem instance for the given type.Can return
nullif there's none.- Returns:
- The corresponding item
-
getId
Returns the internal id of the type.Will return
nullwhen it'sPLUGIN.- Returns:
- The id of the type
-