public class GroundCoverLayer extends Object
Constructor and Description |
---|
GroundCoverLayer(BlockState block,
SeededVariableAmount<Double> depth)
Creates a new
GroundCoverLayer . |
GroundCoverLayer(Function<Double,BlockState> block,
SeededVariableAmount<Double> depth)
Creates a new
GroundCoverLayer . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Function<Double,BlockState> |
getBlockState()
Gets the
BlockState for this layer. |
SeededVariableAmount<Double> |
getDepth()
Gets a representation of the depth of this layer.
|
SeededVariableAmount<Double> |
getDepth(int topYCoordinate)
Gets a representation of the depth of this layer.
|
int |
hashCode() |
void |
setBlockState(BlockState block)
Sets the
BlockState for this layer. |
void |
setBlockState(Function<Double,BlockState> block)
Sets the function which is used to determine the blockstate to place at
this layer.
|
void |
setDepth(double depth)
Sets the depth of this layer to the given constant value.
|
void |
setDepth(SeededVariableAmount<Double> depth)
Sets the
SeededVariableAmount representing the depth of this
layer. |
void |
setDepth(VariableAmount depth)
Sets the
VariableAmount representing the depth of this layer. |
String |
toString() |
public GroundCoverLayer(BlockState block, SeededVariableAmount<Double> depth)
GroundCoverLayer
.block
- The block state to place down for the layerdepth
- The depth of the layerpublic GroundCoverLayer(Function<Double,BlockState> block, SeededVariableAmount<Double> depth)
GroundCoverLayer
.block
- The function which is used to determine the blockstate to
place at this layerdepth
- The depth of the layerpublic Function<Double,BlockState> getBlockState()
BlockState
for this layer.public void setBlockState(Function<Double,BlockState> block)
block
- The block state functionpublic void setBlockState(BlockState block)
BlockState
for this layer.block
- The block statepublic SeededVariableAmount<Double> getDepth()
public SeededVariableAmount<Double> getDepth(int topYCoordinate)
topYCoordinate
- The Y coordinate of the first block that this
layer will apply to.public void setDepth(SeededVariableAmount<Double> depth)
SeededVariableAmount
representing the depth of this
layer. The variable amount will be seeded with the stone noise at
generation time.depth
- The new variable amountpublic void setDepth(VariableAmount depth)
VariableAmount
representing the depth of this layer.depth
- The new variable amountpublic void setDepth(double depth)
depth
- The new depth