S12PacketEntityVelocity

Represents a packet that updates an entity's velocity/motion

Extends

Methods

getEntityID()

getEntityID(): number

Gets the ID of the entity whose velocity is being updated

Returns

number

The entity ID


getMotionX()

getMotionX(): number

Gets the X motion/velocity component

Returns

number

The X velocity value


getMotionY()

getMotionY(): number

Gets the Y motion/velocity component

Returns

number

The Y velocity value


getMotionZ()

getMotionZ(): number

Gets the Z motion/velocity component

Returns

number

The Z velocity value


getPacketID()

getPacketID(): string

Get the ID of the packet.

Returns

string

The ID of the packet.

Inherited from

Packet.getPacketID


setMotionX()

setMotionX(motionX): void

Sets the X motion/velocity component

Parameters

motionX

number

The new X velocity value

Returns

void


setMotionY()

setMotionY(motionY): void

Sets the Y motion/velocity component

Parameters

motionY

number

The new Y velocity value

Returns

void


setMotionZ()

setMotionZ(motionZ): void

Sets the Z motion/velocity component

Parameters

motionZ

number

The new Z velocity value

Returns

void

Last updated