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, wait
get3DBiome, getBiome, getMinHeight, getNamedBiome, is3DBiomesAvailable, isBiomesAvailable, isBiomesSupported, isNamedBiomesAvailable, isNamedBiomesSupported, markForUpdateChunk, setBiome, setNamedBiome
public VirtualChunk(MinecraftWorld world, int chunkX, int chunkZ)
public int getBlockLightLevel(int x, int y, int z)
getBlockLightLevel
in interface Chunk
public void setBlockLightLevel(int x, int y, int z, int blockLightLevel)
setBlockLightLevel
in interface Chunk
public int getBlockType(int x, int y, int z)
getBlockType
in interface Chunk
public void setBlockType(int x, int y, int z, int blockType)
setBlockType
in interface Chunk
public int getDataValue(int x, int y, int z)
getDataValue
in interface Chunk
public void setDataValue(int x, int y, int z, int dataValue)
setDataValue
in interface Chunk
public void setHeight(int x, int z, int height)
public int getSkyLightLevel(int x, int y, int z)
getSkyLightLevel
in interface Chunk
public void setSkyLightLevel(int x, int y, int z, int skyLightLevel)
setSkyLightLevel
in interface Chunk
public MinecraftCoords getCoords()
public boolean isTerrainPopulated()
isTerrainPopulated
in interface Chunk
public void setTerrainPopulated(boolean terrainPopulated)
setTerrainPopulated
in interface Chunk
public Material getMaterial(int x, int y, int z)
getMaterial
in interface Chunk
public void setMaterial(int x, int y, int z, Material material)
setMaterial
in interface Chunk
public java.util.List<Entity> getEntities()
Chunk
getEntities
in interface Chunk
public java.util.List<TileEntity> getTileEntities()
Chunk
getTileEntities
in interface Chunk
public int getMaxHeight()
getMaxHeight
in interface Chunk
public boolean is3DBiomesSupported()
true
in order to support generating 3D previews, but this class does not actually store any
biomes.is3DBiomesSupported
in interface Chunk
public void set3DBiome(int x, int y, int z, int biome)
set3DBiome
in interface Chunk
public boolean isReadOnly()
isReadOnly
in interface Chunk
public boolean isLightPopulated()
isLightPopulated
in interface Chunk
public void setLightPopulated(boolean lightPopulated)
setLightPopulated
in interface Chunk
public long getInhabitedTime()
getInhabitedTime
in interface Chunk
public void setInhabitedTime(long inhabitedTime)
setInhabitedTime
in interface Chunk
public int getHighestNonAirBlock(int x, int z)
Chunk
getHighestNonAirBlock
in interface Chunk
x
- 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()
Chunk
getHighestNonAirBlock
in interface Chunk
Integer.MIN_VALUE
if the chunk is empty.