S27PacketExplosion

Represents a packet that is sent when an explosion occurs

Extends

Methods

getAffectedBlockPositions()

getAffectedBlockPositions(): BlockPos[]

Gets an array of block positions affected by the explosion

Returns

BlockPos[]

Array of affected block positions


getMotionX()

getMotionX(): number

Gets the X motion/knockback applied by the explosion

Returns

number

The X motion value


getMotionY()

getMotionY(): number

Gets the Y motion/knockback applied by the explosion

Returns

number

The Y motion value


getMotionZ()

getMotionZ(): number

Gets the Z motion/knockback applied by the explosion

Returns

number

The Z motion value


getPacketID()

getPacketID(): string

Get the ID of the packet.

Returns

string

The ID of the packet.

Inherited from

Packet.getPacketID


getStrength()

getStrength(): number

Gets the strength/radius of the explosion

Returns

number

The explosion strength


getX()

getX(): number

Gets the X coordinate of the explosion

Returns

number

The X coordinate


getY()

getY(): number

Gets the Y coordinate of the explosion

Returns

number

The Y coordinate


getZ()

getZ(): number

Gets the Z coordinate of the explosion

Returns

number

The Z coordinate


setMotionX()

setMotionX(x): void

Sets the X motion/knockback applied by the explosion

Parameters

x

number

x - The new X motion value

Returns

void


setMotionY()

setMotionY(y): void

Sets the Y motion/knockback applied by the explosion

Parameters

y

number

y - The new Y motion value

Returns

void


setMotionZ()

setMotionZ(z): void

Sets the Z motion/knockback applied by the explosion

Parameters

z

number

z - The new Z motion value

Returns

void

Last updated