# S27PacketExplosion

Represents a packet that is sent when an explosion occurs

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### Methods

#### getAffectedBlockPositions()

> **getAffectedBlockPositions**(): [`BlockPos`](https://scripting.breeze.rip/api/net/minecraft/util/blockpos)\[]

Gets an array of block positions affected by the explosion

**Returns**

[`BlockPos`](https://scripting.breeze.rip/api/net/minecraft/util/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`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/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`

The new X motion value

**Returns**

`void`

***

#### setMotionY()

> **setMotionY**(`y`): `void`

Sets the Y motion/knockback applied by the explosion

**Parameters**

**y**

`number`

The new Y motion value

**Returns**

`void`

***

#### setMotionZ()

> **setMotionZ**(`z`): `void`

Sets the Z motion/knockback applied by the explosion

**Parameters**

**z**

`number`

The new Z motion value

**Returns**

`void`
