Enum PlayerInteractLockedBlockEvent.Action
java.lang.Object
java.lang.Enum<PlayerInteractLockedBlockEvent.Action>
wtf.choco.locksecurity.api.event.block.PlayerInteractLockedBlockEvent.Action
- All Implemented Interfaces:
Serializable
,Comparable<PlayerInteractLockedBlockEvent.Action>
,java.lang.constant.Constable
- Enclosing class:
- PlayerInteractLockedBlockEvent
public static enum PlayerInteractLockedBlockEvent.Action extends Enum<PlayerInteractLockedBlockEvent.Action>
The action that occurred in this event.
- Since:
- 3.0.0
- Author:
- Parker Hawke - Choco
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CLONE_KEY
The player has cloned an unsmithed key into a smithed key for the clicked block.INCORRECT_KEY
The player has failed to open the block as they do not have the correct key.INSPECT_BLOCK
The player has inspected the block for more information.MISSING_KEY
The player has failed to open the block as they do not have a key in hand.OPEN_BLOCK
The player has successfully opened the block with a valid key. -
Method Summary
Modifier and Type Method Description static PlayerInteractLockedBlockEvent.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static PlayerInteractLockedBlockEvent.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OPEN_BLOCK
The player has successfully opened the block with a valid key. -
MISSING_KEY
The player has failed to open the block as they do not have a key in hand. -
INCORRECT_KEY
The player has failed to open the block as they do not have the correct key. -
INSPECT_BLOCK
The player has inspected the block for more information. -
CLONE_KEY
The player has cloned an unsmithed key into a smithed key for the clicked 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
-