public class VirtualChunk extends java.lang.Object implements Chunk
Chunk that is backed by a MinecraftWorld and a chunk offset.| Constructor and Description |
|---|
VirtualChunk(MinecraftWorld world,
int chunkX,
int chunkZ) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockLightLevel(int x,
int y,
int z) |
int |
getBlockType(int x,
int y,
int z) |
MinecraftCoords |
getCoords() |
int |
getDataValue(int x,
int y,
int z) |
java.util.List<Entity> |
getEntities()
Get a list of entities contained in this chunk.
|
int |
getHeight(int x,
int z) |
int |
getHighestNonAirBlock()
Get the Y coordinate of the highest non-air (block ID zero, any data value) block in the chunk.
|
int |
getHighestNonAirBlock(int x,
int z)
Get the Y coordinate of the highest non-air (block ID zero, any data value) block in a specific column.
|
long |
getInhabitedTime() |
Material |
getMaterial(int x,
int y,
int z) |
int |
getMaxHeight() |
int |
getSkyLightLevel(int x,
int y,
int z) |
java.util.List<TileEntity> |
getTileEntities()
Get a list of tile entities (also known as block entities) contained in this chunk.
|
int |
getxPos() |
int |
getzPos() |
boolean |
is3DBiomesSupported()
Returns
true in order to support generating 3D previews, but this class does not actually store any
biomes. |
boolean |
isLightPopulated() |
boolean |
isReadOnly() |
boolean |
isTerrainPopulated() |
void |
set3DBiome(int x,
int y,
int z,
int biome)
Implemented in order to support generating 3D previews, but this class does not actually store any biomes.
|
void |
setBlockLightLevel(int x,
int y,
int z,
int blockLightLevel) |
void |
setBlockType(int x,
int y,
int z,
int blockType) |
void |
setDataValue(int x,
int y,
int z,
int dataValue) |
void |
setHeight(int x,
int z,
int height) |
void |
setInhabitedTime(long inhabitedTime) |
void |
setLightPopulated(boolean lightPopulated) |
void |
setMaterial(int x,
int y,
int z,
Material material) |
void |
setSkyLightLevel(int x,
int y,
int z,
int skyLightLevel) |
void |
setTerrainPopulated(boolean terrainPopulated) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget3DBiome, getBiome, getMinHeight, getNamedBiome, is3DBiomesAvailable, isBiomesAvailable, isBiomesSupported, isNamedBiomesAvailable, isNamedBiomesSupported, markForUpdateChunk, setBiome, setNamedBiomepublic VirtualChunk(MinecraftWorld world, int chunkX, int chunkZ)
public int getBlockLightLevel(int x,
int y,
int z)
getBlockLightLevel in interface Chunkpublic void setBlockLightLevel(int x,
int y,
int z,
int blockLightLevel)
setBlockLightLevel in interface Chunkpublic int getBlockType(int x,
int y,
int z)
getBlockType in interface Chunkpublic void setBlockType(int x,
int y,
int z,
int blockType)
setBlockType in interface Chunkpublic int getDataValue(int x,
int y,
int z)
getDataValue in interface Chunkpublic void setDataValue(int x,
int y,
int z,
int dataValue)
setDataValue in interface Chunkpublic void setHeight(int x,
int z,
int height)
public int getSkyLightLevel(int x,
int y,
int z)
getSkyLightLevel in interface Chunkpublic void setSkyLightLevel(int x,
int y,
int z,
int skyLightLevel)
setSkyLightLevel in interface Chunkpublic MinecraftCoords getCoords()
public boolean isTerrainPopulated()
isTerrainPopulated in interface Chunkpublic void setTerrainPopulated(boolean terrainPopulated)
setTerrainPopulated in interface Chunkpublic Material getMaterial(int x, int y, int z)
getMaterial in interface Chunkpublic void setMaterial(int x,
int y,
int z,
Material material)
setMaterial in interface Chunkpublic java.util.List<Entity> getEntities()
ChunkgetEntities in interface Chunkpublic java.util.List<TileEntity> getTileEntities()
ChunkgetTileEntities in interface Chunkpublic int getMaxHeight()
getMaxHeight in interface Chunkpublic boolean is3DBiomesSupported()
true in order to support generating 3D previews, but this class does not actually store any
biomes.is3DBiomesSupported in interface Chunkpublic void set3DBiome(int x,
int y,
int z,
int biome)
set3DBiome in interface Chunkpublic boolean isReadOnly()
isReadOnly in interface Chunkpublic boolean isLightPopulated()
isLightPopulated in interface Chunkpublic void setLightPopulated(boolean lightPopulated)
setLightPopulated in interface Chunkpublic long getInhabitedTime()
getInhabitedTime in interface Chunkpublic void setInhabitedTime(long inhabitedTime)
setInhabitedTime in interface Chunkpublic int getHighestNonAirBlock(int x,
int z)
ChunkgetHighestNonAirBlock in interface Chunkx - The X coordinate of the column relative to the chunk.z - The Z coordinate of the column relative to the chunk.Integer.MIN_VALUE if the column is empty.public int getHighestNonAirBlock()
ChunkgetHighestNonAirBlock in interface ChunkInteger.MIN_VALUE if the chunk is empty.