public static interface Ore.Builder extends ResettableBuilder<Ore,Ore.Builder>
Ore
populators.Modifier and Type | Method and Description |
---|---|
Ore |
build()
Builds a new instance of a
Ore populator with the settings
set within the builder. |
Ore.Builder |
height(VariableAmount height)
Sets the height that the ore can generate at.
|
Ore.Builder |
ore(BlockState block)
Sets the block to place as ore.
|
default Ore.Builder |
perChunk(int count)
Sets the number of ore clumps to attempt to spawn per chunk, must be
greater than zero.
|
Ore.Builder |
perChunk(VariableAmount count)
Sets the number of ore clumps to attempt to spawn per chunk, must be
greater than zero.
|
Ore.Builder |
placementCondition(Predicate<BlockState> condition)
Sets a predicate which checks for the placement conditions for this
ore.
|
default Ore.Builder |
size(int size)
Sets the size of deposit of ore.
|
Ore.Builder |
size(VariableAmount size)
Sets the size of deposit of ore.
|
from, reset
Ore.Builder ore(BlockState block)
block
- The new ore blockOre.Builder size(VariableAmount size)
size
- The new deposit sizedefault Ore.Builder size(int size)
size
- The new deposit sizeOre.Builder perChunk(VariableAmount count)
count
- The new number of clumps to spawndefault Ore.Builder perChunk(int count)
count
- The new number of clumps to spawnOre.Builder height(VariableAmount height)
height
- The new heightOre.Builder placementCondition(Predicate<BlockState> condition)
condition
- The new placement conditions checkOre build() throws IllegalStateException
Ore
populator with the settings
set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values