C0BPacketEntityAction

new C0BPacketEntityAction(Entity entity, String action)

Constructs a new C0BPacketEntityAction object for the specified entity and action. The entity parameter is an instance of Entity, and the action is a string representing the action to be performed.

getAction(): String

Returns the action name associated with this packet. The action is returned as a string.

setAction(String action): void

Sets the action of the packet.

getAuxData(): int

Retrieves the auxiliary data associated with the action. This is typically an integer value providing additional context or details about the action.

setAuxData(int data): void

Sets the packet's auxData attribute.

Entity actions

  • START_SNEAKING

  • STOP_SNEAKING

  • STOP_SLEEPING

  • START_SPRINTING

  • STOP_SPRINTING

  • RIDING_JUMP

  • OPEN_INVENTORY

Last updated