@@ -231,6 +231,15 @@ public abstract class ChunkGenerator {
|
||||
* Data for a Chunk.
|
||||
*/
|
||||
public static interface ChunkData {
|
||||
/**
|
||||
* Get the minimum height for the chunk.
|
||||
*
|
||||
* Setting blocks below this height will do nothing.
|
||||
*
|
||||
* @return the minimum height
|
||||
*/
|
||||
public int getMinHeight();
|
||||
|
||||
/**
|
||||
* Get the maximum height for the chunk.
|
||||
*
|
||||
@@ -246,7 +255,7 @@ public abstract class ChunkGenerator {
|
||||
* Note: setting blocks outside the chunk's bounds does nothing.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @param material the type to set the block to
|
||||
*/
|
||||
@@ -258,7 +267,7 @@ public abstract class ChunkGenerator {
|
||||
* Setting blocks outside the chunk's bounds does nothing.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @param material the type to set the block to
|
||||
*/
|
||||
@@ -270,7 +279,7 @@ public abstract class ChunkGenerator {
|
||||
* Setting blocks outside the chunk's bounds does nothing.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @param blockData the type to set the block to
|
||||
*/
|
||||
@@ -330,7 +339,7 @@ public abstract class ChunkGenerator {
|
||||
* Getting blocks outside the chunk's bounds returns air.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @return the type of the block or Material.AIR if x, y or z are outside the chunk's bounds
|
||||
*/
|
||||
@@ -343,7 +352,7 @@ public abstract class ChunkGenerator {
|
||||
* Getting blocks outside the chunk's bounds returns air.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @return the type and data of the block or the MaterialData for air if x, y or z are outside the chunk's bounds
|
||||
*/
|
||||
@@ -356,7 +365,7 @@ public abstract class ChunkGenerator {
|
||||
* Getting blocks outside the chunk's bounds returns air.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @return the data of the block or the BlockData for air if x, y or z are outside the chunk's bounds
|
||||
*/
|
||||
@@ -369,7 +378,7 @@ public abstract class ChunkGenerator {
|
||||
* Getting blocks outside the chunk's bounds returns 0.
|
||||
*
|
||||
* @param x the x location in the chunk from 0-15 inclusive
|
||||
* @param y the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)
|
||||
* @param y the y location in the chunk from minHeight (inclusive) - maxHeight (exclusive)
|
||||
* @param z the z location in the chunk from 0-15 inclusive
|
||||
* @return the block data value or air if x, y or z are outside the chunk's bounds
|
||||
* @deprecated Uses magic values
|
||||
|
||||
Reference in New Issue
Block a user