ChunkUnload
com.jsmacrosce.jsmacros.client.api.event.impl.world.EventChunkUnload
Fires after the client processes a server packet to forget a chunk.
js
JsMacros.on("ChunkUnload", JavaWrapper.methodToJava(function (event) {
Chat.log(`Chunk ${event.x}, ${event.z} unloaded`);
}))Constructors
new EventChunkUnload
new EventChunkUnload(int x, int z)#Stores the coordinates for this event; constructing it does not unload a chunk or modify the world.
Parameters:
x: x chunk coordinatez: z chunk coordinate
Fields
x
The chunk's x coordinate, in chunk coordinates.
z
The chunk's z coordinate, in chunk coordinates.