public final class MCRegionChunk extends MCNumberedBlocksChunk
| Modifier and Type | Field and Description | 
|---|---|
| boolean | readOnly | 
| Constructor and Description | 
|---|
| MCRegionChunk(org.jnbt.CompoundTag tag,
             int maxHeight) | 
| MCRegionChunk(org.jnbt.CompoundTag tag,
             int maxHeight,
             boolean readOnly) | 
| MCRegionChunk(int xPos,
             int zPos,
             int maxHeight) | 
| Modifier and Type | Method and Description | 
|---|---|
| MCRegionChunk | clone() | 
| boolean | equals(java.lang.Object obj) | 
| 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() | 
| int | hashCode() | 
| boolean | isLightPopulated() | 
| boolean | isReadOnly() | 
| boolean | isTerrainPopulated() | 
| 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) | 
| org.jnbt.CompoundTag | toNBT() | 
normalisecontainsTag, containsTag, containsType, forEachTag, getAllTags, getAllTags, getBoolean, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getByte, getByteArray, getByteArray, getDouble, getDouble, getDouble, getDouble, getDoubleList, getDoubleList, getFloat, getFloat, getFloat, getFloat, getFloatList, getFloatList, getInt, getInt, getInt, getInt, getIntArray, getIntArray, getList, getList, getLong, getLong, getLong, getLong, getLongArray, getLongArray, getMap, getMap, getShort, getShort, getShort, getShort, getString, getString, getString, getString, getTag, getTag, removeTag, removeTag, setBoolean, setBoolean, setByte, setByte, setByteArray, setByteArray, setDouble, setDouble, setDoubleList, setDoubleList, setFloat, setFloat, setFloatList, setFloatList, setInt, setInt, setIntArray, setIntArray, setList, setList, setLong, setLong, setLongArray, setLongArray, setMap, setMap, setShort, setShort, setString, setString, setTag, setTag, toMultipleNBT, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitget3DBiome, getBiome, getMinHeight, getNamedBiome, is3DBiomesAvailable, is3DBiomesSupported, isBiomesAvailable, isBiomesSupported, isNamedBiomesAvailable, isNamedBiomesSupported, markForUpdateChunk, set3DBiome, setBiome, setNamedBiomepublic MCRegionChunk(int xPos,
                     int zPos,
                     int maxHeight)
public MCRegionChunk(org.jnbt.CompoundTag tag,
                     int maxHeight)
public MCRegionChunk(org.jnbt.CompoundTag tag,
                     int maxHeight,
                     boolean readOnly)
public org.jnbt.CompoundTag toNBT()
toNBT in interface NBTItemtoNBT in class AbstractNBTItempublic int getMaxHeight()
public int getxPos()
public int getzPos()
public MinecraftCoords getCoords()
public int getBlockType(int x,
                        int y,
                        int z)
public void setBlockType(int x,
                         int y,
                         int z,
                         int blockType)
public int getDataValue(int x,
                        int y,
                        int z)
public void setDataValue(int x,
                         int y,
                         int z,
                         int dataValue)
public int getSkyLightLevel(int x,
                            int y,
                            int z)
public void setSkyLightLevel(int x,
                             int y,
                             int z,
                             int skyLightLevel)
public int getBlockLightLevel(int x,
                              int y,
                              int z)
public void setBlockLightLevel(int x,
                               int y,
                               int z,
                               int blockLightLevel)
public int getHeight(int x,
                     int z)
public void setHeight(int x,
                      int z,
                      int height)
public boolean isTerrainPopulated()
public void setTerrainPopulated(boolean terrainPopulated)
public java.util.List<Entity> getEntities()
Chunkpublic java.util.List<TileEntity> getTileEntities()
Chunkpublic Material getMaterial(int x, int y, int z)
public void setMaterial(int x,
                        int y,
                        int z,
                        Material material)
public boolean isReadOnly()
public boolean isLightPopulated()
public void setLightPopulated(boolean lightPopulated)
public long getInhabitedTime()
public void setInhabitedTime(long inhabitedTime)
public int getHighestNonAirBlock(int x,
                                 int z)
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()
ChunkInteger.MIN_VALUE if the chunk is empty.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic MCRegionChunk clone()
clone in class AbstractNBTItemjava.lang.UnsupportedOperationException