Package org.bukkit
Interface ChunkSnapshot
public interface ChunkSnapshot
Represents a static, thread-safe snapshot of chunk of blocks.
 
Purpose is to allow clean, efficient copy of a chunk data to be made, and then handed off for processing in another thread (e.g. map rendering)
- 
Method SummaryModifier and TypeMethodDescriptionbooleanTests if this chunk contains the specified biome.booleanTests if this snapshot contains the specified block.getBiome(int x, int z) Deprecated.biomes are now 3-dimensionalgetBiome(int x, int y, int z) Get biome at given coordinatesgetBlockData(int x, int y, int z) Get block data for block at corresponding coordinate in the chunkintgetBlockEmittedLight(int x, int y, int z) Get light level emitted by block at corresponding coordinate in the chunkintgetBlockSkyLight(int x, int y, int z) Get sky light level for block at corresponding coordinate in the chunkgetBlockType(int x, int y, int z) Get block type for block at corresponding coordinate in the chunklongGet world full time when chunk snapshot was capturedintgetData(int x, int y, int z) Deprecated.Magic valueintgetHighestBlockYAt(int x, int z) Gets the highest non-air coordinate at the given coordinatesdoublegetRawBiomeTemperature(int x, int z) Deprecated.biomes are now 3-dimensionaldoublegetRawBiomeTemperature(int x, int y, int z) Get raw biome temperature at given coordinatesGets name of the world containing this chunkintgetX()Gets the X-coordinate of this chunkintgetZ()Gets the Z-coordinate of this chunkbooleanisSectionEmpty(int sy) Test if section is empty
- 
Method Details- 
getXint getX()Gets the X-coordinate of this chunk- Returns:
- X-coordinate
 
- 
getZint getZ()Gets the Z-coordinate of this chunk- Returns:
- Z-coordinate
 
- 
getWorldNameGets name of the world containing this chunk- Returns:
- Parent World Name
 
- 
getBlockTypeGet block type for block at corresponding coordinate in the chunk- Parameters:
- x- 0-15
- y- world minHeight (inclusive) - world maxHeight (exclusive)
- z- 0-15
- Returns:
- block material type
 
- 
getBlockDataGet block data for block at corresponding coordinate in the chunk- Parameters:
- x- 0-15
- y- world minHeight (inclusive) - world maxHeight (exclusive)
- z- 0-15
- Returns:
- block material type
 
- 
getDataDeprecated.Magic valueGet block data for block at corresponding coordinate in the chunk- Parameters:
- x- 0-15
- y- world minHeight (inclusive) - world maxHeight (exclusive)
- z- 0-15
- Returns:
- 0-15
 
- 
getBlockSkyLightint getBlockSkyLight(int x, int y, int z) Get sky light level for block at corresponding coordinate in the chunk- Parameters:
- x- 0-15
- y- world minHeight (inclusive) - world maxHeight (exclusive)
- z- 0-15
- Returns:
- 0-15
 
- 
getBlockEmittedLightint getBlockEmittedLight(int x, int y, int z) Get light level emitted by block at corresponding coordinate in the chunk- Parameters:
- x- 0-15
- y- world minHeight (inclusive) - world maxHeight (exclusive)
- z- 0-15
- Returns:
- 0-15
 
- 
getHighestBlockYAtint getHighestBlockYAt(int x, int z) Gets the highest non-air coordinate at the given coordinates- Parameters:
- x- X-coordinate of the blocks (0-15)
- z- Z-coordinate of the blocks (0-15)
- Returns:
- Y-coordinate of the highest non-air block
 
- 
getBiomeDeprecated.biomes are now 3-dimensionalGet biome at given coordinates- Parameters:
- x- X-coordinate (0-15)
- z- Z-coordinate (0-15)
- Returns:
- Biome at given coordinate
 
- 
getBiomeGet biome at given coordinates- Parameters:
- x- X-coordinate (0-15)
- y- Y-coordinate (world minHeight (inclusive) - world maxHeight (exclusive))
- z- Z-coordinate (0-15)
- Returns:
- Biome at given coordinate
 
- 
getRawBiomeTemperatureDeprecated.biomes are now 3-dimensionalGet raw biome temperature at given coordinates- Parameters:
- x- X-coordinate (0-15)
- z- Z-coordinate (0-15)
- Returns:
- temperature at given coordinate
 
- 
getRawBiomeTemperaturedouble getRawBiomeTemperature(int x, int y, int z) Get raw biome temperature at given coordinates- Parameters:
- x- X-coordinate (0-15)
- y- Y-coordinate (0-15)
- z- Z-coordinate (0-15)
- Returns:
- temperature at given coordinate
 
- 
getCaptureFullTimelong getCaptureFullTime()Get world full time when chunk snapshot was captured- Returns:
- time in ticks
 
- 
isSectionEmptyboolean isSectionEmpty(int sy) Test if section is empty- Parameters:
- sy- - section Y coordinate (block Y / 16, world minHeight (inclusive) - world maxHeight (exclusive))
- Returns:
- true if empty, false if not
 
- 
containsTests if this snapshot contains the specified block.- Parameters:
- block- block to test
- Returns:
- if the block is contained within
 
- 
containsTests if this chunk contains the specified biome.- Parameters:
- biome- biome to test
- Returns:
- if the biome is contained within
 
 
-