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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryConstructors
- 
Method SummaryModifier 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- 
STARTWhen the player first left clicks a block
- 
STOPWhen the player stops left clicking a block by completely breaking it
- 
ABORTWhen the player stops left clicking a block by releasing the button, or no longer targeting the same block before it breaks.
- 
CLIENT_HOLDWhen the player is actively mining a block on the client side Warning: The event is fired every tick on the client
 
- 
- 
Constructor Details- 
Actionprivate Action()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
convertpublic static PlayerInteractEvent.LeftClickBlock.Action convert(ServerboundPlayerActionPacket.Action action) 
 
-