Enum Class InteractAction
- All Implemented Interfaces:
Serializable,Comparable<InteractAction>,java.lang.constant.Constable
Valid
PlayerInteractAtRegionEvent interact actions-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionItem droppedEntity jumped on soilLeft-clicked in airLeft-clicked a blockItem pickup-edEntity press pressure plateEntity triggers redstone oreRight-clicked in airRight-clicked a blockEntity triggers tripwireDefault action, should be never seen -
Method Summary
Modifier and TypeMethodDescriptionstatic InteractActionReturns the enum constant of this class with the specified name.static InteractAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Default action, should be never seen -
LEFT_CLICK_BLOCK
Left-clicked a block -
RIGHT_CLICK_BLOCK
Right-clicked a block -
LEFT_CLICK_AIR
Left-clicked in air -
RIGHT_CLICK_AIR
Right-clicked in air -
DROP_ITEM
Item dropped -
PICKUP_ITEM
Item pickup-ed -
JUMP_SOIL
Entity jumped on soil -
PRESSURE_PLATE
Entity press pressure plate -
REDSTONE_ORE
Entity triggers redstone ore -
TRIPWIRE
Entity triggers tripwire
-
-
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
-