Enum Class PlayerInteractEvent.LeftClickBlock.Action
java.lang.Object
java.lang.Enum<PlayerInteractEvent.LeftClickBlock.Action>
net.minecraftforge.event.entity.player.PlayerInteractEvent.LeftClickBlock.Action
- All Implemented Interfaces:
Serializable
,Comparable<PlayerInteractEvent.LeftClickBlock.Action>
,Constable
- Enclosing class:
- PlayerInteractEvent.LeftClickBlock
public static enum PlayerInteractEvent.LeftClickBlock.Action
extends Enum<PlayerInteractEvent.LeftClickBlock.Action>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhen the player stops left clicking a block by releasing the button, or no longer targeting the same block before it breaks.When the player is actively mining a block on the client side Warning: The event is fired every tick on the clientWhen the player first left clicks a blockWhen the player stops left clicking a block by completely breaking it -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
When the player first left clicks a block -
STOP
When the player stops left clicking a block by completely breaking it -
ABORT
When the player stops left clicking a block by releasing the button, or no longer targeting the same block before it breaks. -
CLIENT_HOLD
When the player is actively mining a block on the client side Warning: The event is fired every tick on the client
-
-
Constructor Details
-
Action
private Action()
-
-
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
-
convert
public static PlayerInteractEvent.LeftClickBlock.Action convert(ServerboundPlayerActionPacket.Action action)
-