> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/net/minecraft/network/server/s27packetexplosion.md).

# S27PacketExplosion

Represents a packet that is sent when an explosion occurs

### Extends

* [`Packet`](/api/net/minecraft/network/packet.md)

### Methods

#### getAffectedBlockPositions()

> **getAffectedBlockPositions**(): [`BlockPos`](/api/net/minecraft/util/blockpos.md)\[]

Gets an array of block positions affected by the explosion

**Returns**

[`BlockPos`](/api/net/minecraft/util/blockpos.md)\[]

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`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#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`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://scripting.breeze.rip/api/net/minecraft/network/server/s27packetexplosion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
