Package de.marcely.bedwars.api.arena
Enum BedDestructionInfo.Cause
- All Implemented Interfaces:
Serializable
,Comparable<BedDestructionInfo.Cause>
,java.lang.constant.Constable
- Enclosing class:
BedDestructionInfo
The specifc cause or action of the bed destruction.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.May be removed at any timeAn explosive (potentially placed by somebody) caused by its impact a destruction.The bed was destroyed by a plugin using the API.The player manually broke the block with his hand.All the team's members left the game and did not rejoin in time.All the team's members left the game. -
Method Summary
Modifier and TypeMethodDescriptionGet the chat message that might be used for this cause.static BedDestructionInfo.Cause
Returns the enum constant of this type with the specified name.static BedDestructionInfo.Cause[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PUNCH_BLOCK
The player manually broke the block with his hand. -
EXPLOSIVE
An explosive (potentially placed by somebody) caused by its impact a destruction. -
TEAM_LEFT
All the team's members left the game.In contrary to
REJOIN_TIMEOUT
, no opportunity was given to rejoin before the elimination. They left the match and the bed was destroyed immediately with that.- See Also:
-
REJOIN_TIMEOUT
All the team's members left the game and did not rejoin in time.In contrary to
TEAM_LEFT
, an opportunity was given to rejoin before the elimination.- See Also:
-
PLUGIN
The bed was destroyed by a plugin using the API.Note that plugins may also define another cause. This is the default value for the API if none other was specified.
- See Also:
-
DEBUG
Deprecated.May be removed at any timeThe bed was destroyed using a debug command.
-
-
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
-
getChatMessage
Get the chat message that might be used for this cause.- Returns:
- The chat message
-