Chunk

public interface Chunk

Represents chunk of blocks

Functions

Link copied to clipboard
public abstract Block getBlock(int x, int y, int z)
Gets block from this chunk
Link copied to clipboard
public abstract ChunkSnapshot getChunkSnapshot()
public abstract ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain)
Capture thread-safe read-only snapshot of chunk data
Link copied to clipboard
public abstract Array<Entity> getEntities()
Get list of all entities in the chunk.
Link copied to clipboard
public abstract Array<BlockState> getTileEntities()
Get list of all tile entities in the chunk.
Link copied to clipboard
public abstract World getWorld()
Gets the world containing this chunk
Link copied to clipboard
public abstract int getX()
Gets the X-coordinate of this chunk
Link copied to clipboard
public abstract int getZ()
Gets the Z-coordinate of this chunk
Link copied to clipboard
public abstract boolean isLoaded()
Checks if the chunk is loaded.
Link copied to clipboard
public abstract boolean load()
public abstract boolean load(boolean generate)
Loads the chunk.
Link copied to clipboard
public abstract boolean unload()
public abstract boolean unload(boolean save)
public abstract boolean unload(boolean save, boolean safe)
Unloads and optionally saves the Chunk