public final class MC12AnvilChunk extends MCNumberedBlocksChunk implements MinecraftWorld, SectionedChunk
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MC12AnvilChunk.Section | 
| Modifier and Type | Field and Description | 
|---|---|
| boolean | readOnly | 
| Constructor and Description | 
|---|
| MC12AnvilChunk(org.jnbt.CompoundTag tag,
              int maxHeight) | 
| MC12AnvilChunk(org.jnbt.CompoundTag tag,
              int maxHeight,
              boolean readOnly) | 
| MC12AnvilChunk(int xPos,
              int zPos,
              int maxHeight) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addChunk(Chunk chunk)Add a chunk. | 
| void | addEntity(double x,
         double y,
         double height,
         Entity entity) | 
| void | addTileEntity(int x,
             int y,
             int height,
             TileEntity tileEntity) | 
| MC12AnvilChunk | clone() | 
| void | close()Close the chunk provider, flushing any changes and closing any system
 resources. | 
| boolean | equals(java.lang.Object obj) | 
| int | getBiome(int x,
        int z)Get a 2D biome, stored per column. | 
| int | getBlockLightLevel(int x,
                  int y,
                  int z)Returns  0ifheightis too large. | 
| int | getBlockType(int x,
            int y,
            int z) | 
| int | getBlockTypeAt(int x,
              int y,
              int height)Returns  Constants.BLK_AIRifheightis too large. | 
| Chunk | getChunk(int x,
        int z)Retrieve a chunk. | 
| Chunk | getChunkForEditing(int x,
                  int z)Retrieve a chunk for editing. | 
| MinecraftCoords | getCoords() | 
| int | getDataAt(int x,
         int y,
         int height)Returns  0ifheightis too large. | 
| 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 Z coordinate of the highest non-air block in a specific column. | 
| long | getInhabitedTime() | 
| Material | getMaterial(int x,
           int y,
           int z) | 
| Material | getMaterialAt(int x,
             int y,
             int height)Returns  nullifheightis too large. | 
| int | getMaxHeight() | 
| int | getMinHeight() | 
| MC12AnvilChunk.Section[] | getSections()Get the sections contained in the chunk. | 
| int | getSkyLightLevel(int x,
                int y,
                int z)Returns  15ifheightis too large. | 
| 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 | isBiomesAvailable()Indicates whether 2D biomes are available. | 
| boolean | isBiomesSupported()Indicates whether 2D biomes are supported. | 
| boolean | isChunkPresent(int x,
              int y)Determine whether the world contains any data in a particular chunk (a
 16 by 16 block area). | 
| boolean | isLightPopulated() | 
| boolean | isReadOnly() | 
| boolean | isSectionPresent(int y)Indicates whether a specific section is present. | 
| boolean | isTerrainPopulated() | 
| 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)Fails silently if  heightis too large. | 
| void | setBlockType(int x,
            int y,
            int z,
            int blockType) | 
| void | setBlockTypeAt(int x,
              int y,
              int height,
              int blockType)Fails silently if  heightis too large. | 
| void | setDataAt(int x,
         int y,
         int height,
         int data)Fails silently if  heightis too large. | 
| 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 | setMaterialAt(int x,
             int y,
             int height,
             Material material)Fails silently if  heightis too large. | 
| void | setSkyLightLevel(int x,
                int y,
                int z,
                int skyLightLevel)Fails silently if  heightis too large. | 
| 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, waitmarkForUpdateWorldget3DBiome, getNamedBiome, is3DBiomesAvailable, is3DBiomesSupported, isNamedBiomesAvailable, isNamedBiomesSupported, markForUpdateChunk, set3DBiome, setNamedBiomepublic MC12AnvilChunk(int xPos,
                      int zPos,
                      int maxHeight)
public MC12AnvilChunk(org.jnbt.CompoundTag tag,
                      int maxHeight)
public MC12AnvilChunk(org.jnbt.CompoundTag tag,
                      int maxHeight,
                      boolean readOnly)
public boolean isSectionPresent(int y)
SectionedChunkisSectionPresent in interface SectionedChunkpublic MC12AnvilChunk.Section[] getSections()
SectionedChunknull.getSections in interface SectionedChunkpublic org.jnbt.CompoundTag toNBT()
toNBT in interface NBTItemtoNBT in class AbstractNBTItempublic int getMinHeight()
getMinHeight in interface ChunkgetMinHeight in interface MinecraftWorldpublic int getMaxHeight()
getMaxHeight in interface ChunkgetMaxHeight in interface MinecraftWorldpublic MinecraftCoords getCoords()
public 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 int getSkyLightLevel(int x,
                            int y,
                            int z)
MinecraftWorld15 if height is too large.getSkyLightLevel in interface ChunkgetSkyLightLevel in interface MinecraftWorldpublic void setSkyLightLevel(int x,
                             int y,
                             int z,
                             int skyLightLevel)
MinecraftWorldheight is too large.setSkyLightLevel in interface ChunksetSkyLightLevel in interface MinecraftWorldpublic int getBlockLightLevel(int x,
                              int y,
                              int z)
MinecraftWorld0 if height is too large.getBlockLightLevel in interface ChunkgetBlockLightLevel in interface MinecraftWorldpublic void setBlockLightLevel(int x,
                               int y,
                               int z,
                               int blockLightLevel)
MinecraftWorldheight is too large.setBlockLightLevel in interface ChunksetBlockLightLevel in interface MinecraftWorldpublic void setHeight(int x,
                      int z,
                      int height)
public boolean isBiomesSupported()
ChunkChunk.getBiome(int, int) and Chunk.setBiome(int, int, int).
 The default implementation returns false.
isBiomesSupported in interface Chunkpublic boolean isBiomesAvailable()
ChunkChunk.getBiome(int, int) and Chunk.setBiome(int, int, int).
 The default implementation returns false.
isBiomesAvailable in interface Chunkpublic int getBiome(int x,
                    int z)
ChunkUnsupportedOperationException when invoked on a format which
 does not support 2D biomes.public void setBiome(int x,
                     int z,
                     int biome)
ChunkUnsupportedOperationException when invoked on a format which
 does not support 2D biomes.public boolean isTerrainPopulated()
isTerrainPopulated in interface Chunkpublic void setTerrainPopulated(boolean terrainPopulated)
setTerrainPopulated in interface Chunkpublic java.util.List<Entity> getEntities()
ChunkgetEntities in interface Chunkpublic java.util.List<TileEntity> getTileEntities()
ChunkgetTileEntities 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 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)
MinecraftWorldgetHighestNonAirBlock in interface ChunkgetHighestNonAirBlock in interface MinecraftWorldx - The X coordinate of the column.z - The Y coordinate of the column.Integer.MIN_VALUE if the
 column is empty or no data is present
 for the specified coordinates.public int getHighestNonAirBlock()
ChunkgetHighestNonAirBlock in interface ChunkInteger.MIN_VALUE if the chunk is empty.public int getBlockTypeAt(int x,
                          int y,
                          int height)
MinecraftWorldConstants.BLK_AIR if height is too large.getBlockTypeAt in interface MinecraftWorldpublic int getDataAt(int x,
                     int y,
                     int height)
MinecraftWorld0 if height is too large.getDataAt in interface MinecraftWorldpublic Material getMaterialAt(int x, int y, int height)
MinecraftWorldnull if height is too large.getMaterialAt in interface MinecraftWorldpublic void setBlockTypeAt(int x,
                           int y,
                           int height,
                           int blockType)
MinecraftWorldheight is too large.setBlockTypeAt in interface MinecraftWorldpublic void setDataAt(int x,
                      int y,
                      int height,
                      int data)
MinecraftWorldheight is too large.setDataAt in interface MinecraftWorldpublic void setMaterialAt(int x,
                          int y,
                          int height,
                          Material material)
MinecraftWorldheight is too large.setMaterialAt in interface MinecraftWorldpublic boolean isChunkPresent(int x,
                              int y)
MinecraftWorldisChunkPresent in interface ChunkProviderisChunkPresent in interface MinecraftWorldx - The X coordinate in chunk coordinates.y - The Y coordinate in chunk coordinates.true if data is present for the specified chunk.public void addChunk(Chunk chunk)
MinecraftWorldPlatform.addChunk in interface MinecraftWorldchunk - The chunk to add.public void addEntity(double x,
                      double y,
                      double height,
                      Entity entity)
addEntity in interface MinecraftWorldpublic void addTileEntity(int x,
                          int y,
                          int height,
                          TileEntity tileEntity)
addTileEntity in interface MinecraftWorldpublic Chunk getChunk(int x, int z)
ChunkProvidernull is
 returned. The returned chunk may be read-only.getChunk in interface ChunkProviderx - The X coordinate of the chunk to retrieve.z - The Z coordinate of the chunk to retrieve.null if there is no chunk at
 the specified coordinates.public Chunk getChunkForEditing(int x, int z)
ChunkProvidernull may be returned, or the provider may
 create a new, empty chunk. The returned chunk is guaranteed not to be
 read-only.getChunkForEditing in interface ChunkProviderx - The X coordinate of the chunk to retrieve.z - The Z coordinate of the chunk to retrieve.null if there is no chunk at
 the specified coordinates, and this chunk provider does not create new
 chunks.public void close()
ChunkProviderclose in interface java.lang.AutoCloseableclose in interface ChunkProviderpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic MC12AnvilChunk clone()
clone in class AbstractNBTItemjava.lang.UnsupportedOperationException - Always