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 |
maxHeight(int max)
Sets the maximum height that the ore can generate at.
|
Ore.Builder |
minHeight(int min)
Sets the minimum height that the ore can generate at.
|
Ore.Builder |
ore(BlockState block)
Sets the block to place as ore.
|
Ore.Builder |
perChunk(int count)
Sets the number of ore clumps to attempt to spawn per chunk, must be
greater than zero.
|
Ore.Builder |
reset()
Resets this builder to the default values.
|
Ore.Builder |
size(int size)
Sets the size of deposit of ore.
|
Ore.Builder ore(BlockState block)
block
- The new ore blockOre.Builder size(int size)
size
- The new deposit sizeOre.Builder perChunk(int count)
count
- The new number of clumps to spawnOre.Builder minHeight(int min)
min
- The new minimum heightOre.Builder maxHeight(int max)
max
- The new maximum heightOre.Builder reset()
Ore 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