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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getId()
Returns the internal id of the type.@Nullable SpecialItem
getItem()
Returns the SpecialItem instance for the given type.static SpecialItemType
Returns 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
null
if there's none.- Returns:
- The corresponding item
-
getId
Returns the internal id of the type.Will return
null
when it'sPLUGIN
.- Returns:
- The id of the type
-