ChunkLoad
com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkLoad
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 coordinatesz: chunk z coordinate, in chunk coordinatesisFull: whether the supplied data represents a full chunk;falseis stored unchanged
Fields
isFull
Whether the packet contained full chunk data; always
true on this event path.x
The chunk's x coordinate, in chunk coordinates.
z
The chunk's z coordinate, in chunk coordinates.