Modifier and Type | Interface and Description |
---|---|
static interface |
Ore.Builder
A builder for constructing
Ore populators. |
Modifier and Type | Method and Description |
---|---|
static Ore.Builder |
builder()
Creates a new
Ore.Builder to build a Ore populator. |
VariableAmount |
getDepositSize()
Gets the size of deposit of ore.
|
VariableAmount |
getDepositsPerChunk()
Gets the number of ore clumps to attempt to spawn per chunk, must be
greater than zero.
|
VariableAmount |
getHeight()
Gets the height that the ore will generate at.
|
BlockState |
getOreBlock()
Gets the block to place as ore.
|
Predicate<BlockState> |
getPlacementCondition()
Gets a predicate which checks for the placement conditions for this ore.
|
default void |
setDepositSize(int size)
Sets the size of deposit of ore.
|
void |
setDepositSize(VariableAmount size)
Sets the size of deposit of ore.
|
default void |
setDepositsPerChunk(int count)
Sets the number of ore clumps to attempt to spawn per chunk, must be
greater than zero.
|
void |
setDepositsPerChunk(VariableAmount count)
Sets the number of ore clumps to attempt to spawn per chunk, must be
greater than zero.
|
void |
setHeight(VariableAmount height)
Sets the height that the ore will generate at.
|
void |
setOreBlock(BlockState block)
Sets the block to place as ore.
|
void |
setPlacementCondition(Predicate<BlockState> condition)
Sets a predicate which checks for the placement conditions for this ore.
|
static Ore.Builder builder()
Ore.Builder
to build a Ore
populator.BlockState getOreBlock()
void setOreBlock(BlockState block)
block
- The new ore blockVariableAmount getDepositSize()
void setDepositSize(VariableAmount size)
size
- The new deposit sizedefault void setDepositSize(int size)
size
- The new deposit sizeVariableAmount getDepositsPerChunk()
void setDepositsPerChunk(VariableAmount count)
count
- The new number of clumps to spawndefault void setDepositsPerChunk(int count)
count
- The new number of clumps to spawnVariableAmount getHeight()
void setHeight(VariableAmount height)
height
- The new heightPredicate<BlockState> getPlacementCondition()
void setPlacementCondition(Predicate<BlockState> condition)
condition
- The new placement conditions check