Enum Class PlayerAction

java.lang.Object
java.lang.Enum<PlayerAction>
devs.beer.nativepackets.api.PlayerAction
All Implemented Interfaces:
Serializable, Comparable<PlayerAction>, Constable

public enum PlayerAction extends Enum<PlayerAction>
Stable serverbound player-action values in protocol order.
  • Enum Constant Details

    • START_DESTROY_BLOCK

      public static final PlayerAction START_DESTROY_BLOCK
    • ABORT_DESTROY_BLOCK

      public static final PlayerAction ABORT_DESTROY_BLOCK
    • STOP_DESTROY_BLOCK

      public static final PlayerAction STOP_DESTROY_BLOCK
    • DROP_ALL_ITEMS

      public static final PlayerAction DROP_ALL_ITEMS
    • DROP_ITEM

      public static final PlayerAction DROP_ITEM
    • RELEASE_USE_ITEM

      public static final PlayerAction RELEASE_USE_ITEM
    • SWAP_ITEM_WITH_OFFHAND

      public static final PlayerAction SWAP_ITEM_WITH_OFFHAND
    • STAB

      public static final PlayerAction STAB
  • Method Details

    • values

      public static PlayerAction[] 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

      public static PlayerAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null