Skip to content

ChunkLoad ​

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

Since1.2.7Not cancellable

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 ​

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 ​

isFull: booleanread-only#
Whether the packet contained full chunk data; always true on this event path.

x ​

x: intread-only#
The chunk's x coordinate, in chunk coordinates.

z ​

z: intread-only#
The chunk's z coordinate, in chunk coordinates.

Methods ​

toString ​

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