unloadChunk

public abstract boolean unloadChunk(Chunk chunk)

Safely unloads and saves the Chunk at the specified coordinates

This method is analogous to unloadChunk where safe and saveis true

Return

true if the chunk has unloaded successfully, otherwise false

Parameters

chunk

the chunk to unload


public abstract boolean unloadChunk(int x, int z)

Safely unloads and saves the Chunk at the specified coordinates

This method is analogous to unloadChunk where safe and saveis true

Return

true if the chunk has unloaded successfully, otherwise false

Parameters

x

X-coordinate of the chunk

z

Z-coordinate of the chunk


public abstract boolean unloadChunk(int x, int z, boolean save)

Safely unloads and optionally saves the Chunk at the specified coordinates

This method is analogous to unloadChunk where save is true

Return

true if the chunk has unloaded successfully, otherwise false

Parameters

x

X-coordinate of the chunk

z

Z-coordinate of the chunk

save

Whether or not to save the chunk


public abstract boolean unloadChunk(int x, int z, boolean save, boolean safe)

Unloads and optionally saves the Chunk at the specified coordinates

Return

true if the chunk has unloaded successfully, otherwise false

Parameters

x

X-coordinate of the chunk

z

Z-coordinate of the chunk

save

Controls whether the chunk is saved

safe

Controls whether to unload the chunk when players are nearby