Enum ArenaBedBreakEvent.Result
java.lang.Object
java.lang.Enum<ArenaBedBreakEvent.Result>
de.marcely.bedwars.api.event.arena.ArenaBedBreakEvent.Result
- All Implemented Interfaces:
Serializable
,Comparable<ArenaBedBreakEvent.Result>
,java.lang.constant.Constable
- Enclosing class:
ArenaBedBreakEvent
Use it to declare what's supposed to happen next.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAct like the player didn't break the blockContinue as normal.Does everything asDONT_CANCEL
, only doesn't update the internal state. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArenaBedBreakEvent.Result
Returns the enum constant of this type with the specified name.static ArenaBedBreakEvent.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DONT_CANCEL
Continue as normal. This includes block breaking, broadcasts (if i.a.ArenaBedBreakEvent.isPlayingSound()
etc. is set), internal state setting etc... -
IGNORE_STATE_UPDATE
Does everything asDONT_CANCEL
, only doesn't update the internal state. Meaning that bed theoretically still isn't broken, but visually it looks like it is. -
CANCEL
Act like the player didn't break the block
-
-
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
-