Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.ChunkSnapshot Interface Reference

Public Member Functions

int getX ()
 
int getZ ()
 
String getWorldName ()
 
int getBlockTypeId (int x, int y, int z)
 
int getBlockData (int x, int y, int z)
 
int getBlockSkyLight (int x, int y, int z)
 
int getBlockEmittedLight (int x, int y, int z)
 
int getHighestBlockYAt (int x, int z)
 
Biome getBiome (int x, int z)
 
double getRawBiomeTemperature (int x, int z)
 
double getRawBiomeRainfall (int x, int z)
 
long getCaptureFullTime ()
 
boolean isSectionEmpty (int sy)
 

Detailed Description

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)

Definition at line 11 of file ChunkSnapshot.java.

Member Function Documentation

Biome org.bukkit.ChunkSnapshot.getBiome ( int  x,
int  z 
)

Get biome at given coordinates

Parameters
xX-coordinate
zZ-coordinate
Returns
Biome at given coordinate
int org.bukkit.ChunkSnapshot.getBlockData ( int  x,
int  y,
int  z 
)

Get block data for block at corresponding coordinate in the chunk

Parameters
x0-15
y0-127
z0-15
Returns
0-15
Deprecated:
Magic value
int org.bukkit.ChunkSnapshot.getBlockEmittedLight ( int  x,
int  y,
int  z 
)

Get light level emitted by block at corresponding coordinate in the chunk

Parameters
x0-15
y0-127
z0-15
Returns
0-15
int org.bukkit.ChunkSnapshot.getBlockSkyLight ( int  x,
int  y,
int  z 
)

Get sky light level for block at corresponding coordinate in the chunk

Parameters
x0-15
y0-127
z0-15
Returns
0-15
int org.bukkit.ChunkSnapshot.getBlockTypeId ( int  x,
int  y,
int  z 
)

Get block type for block at corresponding coordinate in the chunk

Parameters
x0-15
y0-127
z0-15
Returns
0-255
Deprecated:
Magic value
long org.bukkit.ChunkSnapshot.getCaptureFullTime ( )

Get world full time when chunk snapshot was captured

Returns
time in ticks
int org.bukkit.ChunkSnapshot.getHighestBlockYAt ( int  x,
int  z 
)

Gets the highest non-air coordinate at the given coordinates

Parameters
xX-coordinate of the blocks
zZ-coordinate of the blocks
Returns
Y-coordinate of the highest non-air block
double org.bukkit.ChunkSnapshot.getRawBiomeRainfall ( int  x,
int  z 
)

Get raw biome rainfall (0.0-1.0) at given coordinate

Parameters
xX-coordinate
zZ-coordinate
Returns
rainfall at given coordinate
double org.bukkit.ChunkSnapshot.getRawBiomeTemperature ( int  x,
int  z 
)

Get raw biome temperature (0.0-1.0) at given coordinate

Parameters
xX-coordinate
zZ-coordinate
Returns
temperature at given coordinate
String org.bukkit.ChunkSnapshot.getWorldName ( )

Gets name of the world containing this chunk

Returns
Parent World Name
int org.bukkit.ChunkSnapshot.getX ( )

Gets the X-coordinate of this chunk

Returns
X-coordinate
int org.bukkit.ChunkSnapshot.getZ ( )

Gets the Z-coordinate of this chunk

Returns
Z-coordinate
boolean org.bukkit.ChunkSnapshot.isSectionEmpty ( int  sy)

Test if section is empty

Parameters
sy- section Y coordinate (block Y / 16)
Returns
true if empty, false if not

The documentation for this interface was generated from the following file: