ChunkSnapshot

public interface ChunkSnapshot

Represents static, thread-safe snapshot of chunk of blocks.

Purpose is to allow clean, efficient copy of chunk data to be made, and then handed off for processing in another thread (e.g. map rendering)

Functions

Link copied to clipboard
public abstract Biome getBiome(int x, int z)
Get biome at given coordinates
Link copied to clipboard
public abstract int getBlockEmittedLight(int x, int y, int z)
Get light level emitted by block at corresponding coordinate in the chunk
Link copied to clipboard
public abstract int getBlockSkyLight(int x, int y, int z)
Get sky light level for block at corresponding coordinate in the chunk
Link copied to clipboard
public abstract long getCaptureFullTime()
Get world full time when chunk snapshot was captured
Link copied to clipboard
public abstract int getHighestBlockYAt(int x, int z)
Gets the highest non-air coordinate at the given coordinates
Link copied to clipboard
public abstract double getRawBiomeRainfall(int x, int z)
Get raw biome rainfall (0.0-1.
Link copied to clipboard
public abstract double getRawBiomeTemperature(int x, int z)
Get raw biome temperature (0.0-1.
Link copied to clipboard
public abstract String getWorldName()
Gets name of 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 isSectionEmpty(int sy)
Test if section is empty