public static interface ChunkGenerator.ChunkData
| Modifier and Type | Method | Description | 
|---|---|---|
| BlockData | getBlockData(int x,
            int y,
            int z) | Get the type and data of the block at x, y, z. | 
| 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. | 
| void | setBlock(int x,
        int y,
        int z,
        BlockData blockData) | Set the block at x,y,z in the chunk data to material. | 
| 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,
         BlockData blockData) | 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,
         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,
              @NotNull
              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,
              @NotNull
              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 setBlock(int x,
              int y,
              int z,
              @NotNull
              BlockData blockData)
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 inclusiveblockData - the type to set the block tovoid setRegion(int xMin,
               int yMin,
               int zMin,
               int xMax,
               int yMax,
               int zMax,
               @NotNull
               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,
               @NotNull
               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 tovoid setRegion(int xMin,
               int yMin,
               int zMin,
               int xMax,
               int yMax,
               int zMax,
               @NotNull
               BlockData blockData)
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 setblockData - the type to set the blocks to@NotNull Material 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 inclusive@NotNull MaterialData 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@NotNull BlockData getBlockData(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 © 2019. All rights reserved.