Enum Class BlockEventType
- All Implemented Interfaces:
Serializable
,Comparable<BlockEventType>
,Constable
Enum to keep track of all supported block events that can destroy a portal
-
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 TypeMethodDescriptionboolean
static BlockEventType
Returns the enum constant of this class with the specified name.static BlockEventType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_BURN
-
BLOCK_PLACE
-
BLOCK_FADE
-
BLOCK_FERTILIZE
-
BLOCK_PHYSICS
-
BLOCK_FROM_TO
-
BLOCK_FORM
-
BLOCK_MULTI_PLACE
-
BLOCK_PISTON_RETRACT
-
BLOCK_PISTON_EXTEND
-
ENTITY_BLOCK_FORM
-
LEAVES_DECAY
-
SPONGE_ABSORB
-
ENTITY_CHANGE_EVENT_BLOCK
-
ENTITY_BREAK_DOOR
-
PORTAL_CREATE
-
ENTITY_PLACE
-
PLAYER_BUCKET_EMPTY
-
BLOCK_DISPENSE
-
BLOCK_BREAK
-
TNT_PRIME
-
ENTITY_EXPLODE
-
BLOCK_EXPLODE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
canDestroyPortal
public boolean canDestroyPortal()- Returns:
Is the event eligible to destroy a portal
-