Enum BlockType
- All Implemented Interfaces:
Serializable
,Comparable<BlockType>
,java.lang.constant.Constable
SpecialBlocks may very from what they represent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA block with a custom handler.A sign which makes the player join the arena once he interacts with it.A sign which displays informations of a place in a leaderboard.A skull of a player on a specific rank. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BlockType
Returns the BlockType that has the given idgetId()
Returns the id of this typestatic BlockType
Returns the enum constant of this type with the specified name.static BlockType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RANKING_SIGN
A sign which displays informations of a place in a leaderboard.Represented by
RankingSignBlock
-
RANKING_SKULL
A skull of a player on a specific rank. Used for the leaderboard.Represented by
RankingSkullBlock
-
JOIN_ARENA_SIGN
A sign which makes the player join the arena once he interacts with it.Represented by
JoinArenaSignBlock
-
CUSTOM
A block with a custom handler. The only purpose for this is to allow devs to create custom special blocks with custom handlers.Represented by
CustomBlock
-
-
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
-
getId
Returns the id of this type- Returns:
- The id
-
fromId
Returns the BlockType that has the given id- Parameters:
id
- The id that shall match with the returning BlockType- Returns:
- The BlockType with the given id.
null
if there's none
-