C0BPacketEntityAction

A packet sent by the client to inform the server about entity actions such as sprinting or sneaking.

Extends

Constructors

Constructor

new C0BPacketEntityAction(entity, action): C0BPacketEntityAction

Creates a new C0BPacketEntityAction for the given entity and action

Parameters

entity

Entity

entity - The entity performing the action

action

EntityAction

action - The action being performed

Returns

C0BPacketEntityAction

Overrides

Packet.constructor

Methods

getAction()

getAction(): EntityAction

Gets the action being performed

Returns

EntityAction

The action as a string


getAuxData()

getAuxData(): number

Gets the auxiliary data associated with this action

Returns

number

The auxiliary data value


getPacketID()

getPacketID(): string

Get the ID of the packet.

Returns

string

The ID of the packet.

Inherited from

Packet.getPacketID


setAction()

setAction(action): void

Sets the action to be performed

Parameters

action

EntityAction

action - The new action

Returns

void


setAuxData()

setAuxData(auxData): void

Sets the auxiliary data associated with this action

Parameters

auxData

number

auxData - The new auxiliary data value

Returns

void

Last updated