public static interface ChunkGenerator.ChunkData
| Modifier and Type | Method and Description | 
|---|---|
| byte | getData(int x,
       int y,
       int z)Deprecated. 
 Uses magic values | 
| int | getMaxHeight()Get the maximum height for the chunk. | 
| Material | getType(int x,
       int y,
       int z)Get the type of the block at x, y, z. | 
| MaterialData | getTypeAndData(int x,
              int y,
              int z)Get the type and data of the block at x, y ,z. | 
| int | getTypeId(int x,
         int y,
         int z)Deprecated. 
 Uses magic values | 
| void | setBlock(int x,
        int y,
        int z,
        int blockId)Deprecated. 
 Uses magic values | 
| void | setBlock(int x,
        int y,
        int z,
        int blockId,
        byte data)Deprecated. 
 Uses magic values | 
| void | setBlock(int x,
        int y,
        int z,
        Material material)Set the block at x,y,z in the chunk data to material. | 
| void | setBlock(int x,
        int y,
        int z,
        MaterialData material)Set the block at x,y,z in the chunk data to material. | 
| void | setRegion(int xMin,
         int yMin,
         int zMin,
         int xMax,
         int yMax,
         int zMax,
         int blockId)Deprecated. 
 Uses magic values. | 
| void | setRegion(int xMin,
         int yMin,
         int zMin,
         int xMax,
         int yMax,
         int zMax,
         int blockId,
         int data)Deprecated. 
 Uses magic values. | 
| void | setRegion(int xMin,
         int yMin,
         int zMin,
         int xMax,
         int yMax,
         int zMax,
         Material material)Set a region of this chunk from xMin, yMin, zMin (inclusive)
 to xMax, yMax, zMax (exclusive) to material. | 
| void | setRegion(int xMin,
         int yMin,
         int zMin,
         int xMax,
         int yMax,
         int zMax,
         MaterialData material)Set a region of this chunk from xMin, yMin, zMin (inclusive)
 to xMax, yMax, zMax (exclusive) to material. | 
int getMaxHeight()
void setBlock(int x,
            int y,
            int z,
            Material material)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusivematerial - the type to set the block tovoid setBlock(int x,
            int y,
            int z,
            MaterialData material)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusivematerial - the type to set the block tovoid setRegion(int xMin,
             int yMin,
             int zMin,
             int xMax,
             int yMax,
             int zMax,
             Material material)
xMin - minimum x location (inclusive) in the chunk to setyMin - minimum y location (inclusive) in the chunk to setzMin - minimum z location (inclusive) in the chunk to setxMax - maximum x location (exclusive) in the chunk to setyMax - maximum y location (exclusive) in the chunk to setzMax - maximum z location (exclusive) in the chunk to setmaterial - the type to set the blocks tovoid setRegion(int xMin,
             int yMin,
             int zMin,
             int xMax,
             int yMax,
             int zMax,
             MaterialData material)
xMin - minimum x location (inclusive) in the chunk to setyMin - minimum y location (inclusive) in the chunk to setzMin - minimum z location (inclusive) in the chunk to setxMax - maximum x location (exclusive) in the chunk to setyMax - maximum y location (exclusive) in the chunk to setzMax - maximum z location (exclusive) in the chunk to setmaterial - the type to set the blocks toMaterial getType(int x, int y, int z)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusiveMaterialData getTypeAndData(int x, int y, int z)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusive@Deprecated void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, int blockId)
xMin - minimum x location (inclusive) in the chunk to setyMin - minimum y location (inclusive) in the chunk to setzMin - minimum z location (inclusive) in the chunk to setxMax - maximum x location (exclusive) in the chunk to setyMax - maximum y location (exclusive) in the chunk to setzMax - maximum z location (exclusive) in the chunk to setblockId - the block id to set the blocks to@Deprecated void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, int blockId, int data)
xMin - minimum x location (inclusive) in the chunk to setyMin - minimum y location (inclusive) in the chunk to setzMin - minimum z location (inclusive) in the chunk to setxMax - maximum x location (exclusive) in the chunk to setyMax - maximum y location (exclusive) in the chunk to setzMax - maximum z location (exclusive) in the chunk to setblockId - the block id to set the blocks todata - the block data to set the blocks to@Deprecated void setBlock(int x, int y, int z, int blockId)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusiveblockId - the blockId to set the block to@Deprecated void setBlock(int x, int y, int z, int blockId, byte data)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusiveblockId - the blockId to set the block todata - the block data to set the block to@Deprecated int getTypeId(int x, int y, int z)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusive@Deprecated byte getData(int x, int y, int z)
x - the x location in the chunk from 0-15 inclusivey - the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z - the z location in the chunk from 0-15 inclusiveCopyright © 2017. All rights reserved.