Constructor and Description |
---|
InvertedChunk(Chunk chunk,
int delta,
Platform platform) |
Modifier and Type | Method and Description |
---|---|
int |
get3DBiome(int x,
int y,
int z)
Get a 3D biome, stored per 4x4x4 block.
|
int |
getBiome(int x,
int z)
Get a 2D biome, stored per column.
|
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 |
getMinHeight() |
java.lang.String |
getNamedBiome(int x,
int y,
int z)
Get a modern biome, stored per 4x4x4 block.
|
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 |
is3DBiomesAvailable()
Indicates whether 3D biomes are available.
|
boolean |
is3DBiomesSupported()
Indicates whether 3D biomes are supported.
|
boolean |
isBiomesAvailable()
Indicates whether 2D biomes are available.
|
boolean |
isBiomesSupported()
Indicates whether 2D biomes are supported.
|
boolean |
isLightPopulated() |
boolean |
isNamedBiomesAvailable()
Indicates whether named biomes are available.
|
boolean |
isNamedBiomesSupported()
Indicates whether named biomes are supported.
|
boolean |
isReadOnly() |
boolean |
isTerrainPopulated() |
void |
markForUpdateChunk(int x,
int y,
int z)
Mark a block to be updated by Minecraft when next loaded.
|
void |
set3DBiome(int x,
int y,
int z,
int biome)
Set a 3D biome, stored per 4x4x4 block.
|
void |
setBiome(int x,
int z,
int biome)
Set a 2D biome, stored per column.
|
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 |
setNamedBiome(int x,
int y,
int z,
java.lang.String biome)
Set a modern biome, stored per 4x4x4 block.
|
void |
setSkyLightLevel(int x,
int y,
int z,
int skyLightLevel) |
void |
setTerrainPopulated(boolean terrainPopulated) |
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 getMinHeight()
getMinHeight
in interface Chunk
public int getMaxHeight()
getMaxHeight
in interface Chunk
public boolean isBiomesSupported()
Chunk
Chunk.getBiome(int, int)
and Chunk.setBiome(int, int, int)
.
The default implementation returns false
.
isBiomesSupported
in interface Chunk
public boolean isBiomesAvailable()
Chunk
Chunk.getBiome(int, int)
and Chunk.setBiome(int, int, int)
.
The default implementation returns false
.
isBiomesAvailable
in interface Chunk
public boolean is3DBiomesSupported()
Chunk
Chunk.get3DBiome(int, int, int)
and
Chunk.set3DBiome(int, int, int, int)
.
The default implemenation returns false
.
is3DBiomesSupported
in interface Chunk
public boolean is3DBiomesAvailable()
Chunk
Chunk.get3DBiome(int, int, int)
and
Chunk.set3DBiome(int, int, int, int)
.
The default implemenation returns false
.
is3DBiomesAvailable
in interface Chunk
public boolean isNamedBiomesSupported()
Chunk
Chunk.getNamedBiome(int, int, int)
and
Chunk.setNamedBiome(int, int, int, String)
.
The default implementation returns false
.
isNamedBiomesSupported
in interface Chunk
public boolean isNamedBiomesAvailable()
Chunk
Chunk.getNamedBiome(int, int, int)
and
Chunk.setNamedBiome(int, int, int, String)
.
The default implementation returns false
.
isNamedBiomesAvailable
in interface Chunk
public int getBiome(int x, int z)
Chunk
UnsupportedOperationException
when invoked on a format which
does not support 2D biomes.public void setBiome(int x, int z, int biome)
Chunk
UnsupportedOperationException
when invoked on a format which
does not support 2D biomes.public int get3DBiome(int x, int y, int z)
Chunk
UnsupportedOperationException
when invoked on a format which does not support 3D biomes.get3DBiome
in interface Chunk
public void set3DBiome(int x, int y, int z, int biome)
Chunk
UnsupportedOperationException
when invoked on a format which does not support 3D biomes.set3DBiome
in interface Chunk
public java.lang.String getNamedBiome(int x, int y, int z)
Chunk
UnsupportedOperationException
when invoked on a format which does not support modern
biomes.getNamedBiome
in interface Chunk
public void setNamedBiome(int x, int y, int z, java.lang.String biome)
Chunk
UnsupportedOperationException
when invoked on a format which does not support named
biomes.setNamedBiome
in interface Chunk
public void markForUpdateChunk(int x, int y, int z)
Chunk
The default implementation does nothing.
markForUpdateChunk
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.