# ChunkLoad

`com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad`

**Since:** 1.2.7

**Cancellable:** No. Calling `event.cancel()` throws `UnsupportedOperationException`.

Fires after a full chunk-data packet has updated the client world. `isFull` is always
`true` on this event path.  
```js
JsMacros.on("ChunkLoad", JavaWrapper.methodToJava(function (event) {
  Chat.log(`Chunk ${event.x}, ${event.z} loaded`);  
}))
```

## Constructors

### new EventChunkLoad {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad_constructor-int-int-boolean-}

```js
new EventChunkLoad(int x, int z, boolean isFull)
```

Stores the supplied chunk coordinates and full-data flag; this constructor does not load or modify a chunk.

**Parameters:**
- `x`: chunk x coordinate, in chunk coordinates
- `z`: chunk z coordinate, in chunk coordinates
- `isFull`: whether the supplied data represents a full chunk; `false` is stored unchanged

## Fields

### isFull {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad_isFull}

```js
isFull: boolean
```

Whether the packet contained full chunk data; always `true` on this event path.

### x {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad_x}

```js
x: int
```

The chunk's x coordinate, in chunk coordinates.

### z {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad_z}

```js
z: int
```

The chunk's z coordinate, in chunk coordinates.

## Methods

### toString {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad_toString-}

```js
toString(): String
```

Returns a diagnostic string containing the event name and stored chunk coordinates.  
The format is `%s:{"x": %d, "z": %d}`; `isFull` is omitted.

**Returns:** the formatted diagnostic string
