public static interface DoublePlant.Builder
DoublePlant
populators.Modifier and Type | Method and Description |
---|---|
DoublePlant |
build()
Builds a new instance of a
DoublePlant populator with the
settings set within the builder. |
DoublePlant.Builder |
perChunk(int count)
Sets the base number of plants to create, cannot be negative.
|
DoublePlant.Builder |
perChunkVariance(int variance)
Sets the variance in the amount, must be greater than zero.
|
DoublePlant.Builder |
possibleTypes(Collection<DoublePlantType> types)
Sets which plant types may be spawned in by this populator.
|
DoublePlant.Builder |
possibleTypes(DoublePlantType... types)
Sets which plant types may be spawned in by this populator.
|
DoublePlant.Builder |
reset()
Resets this builder to the default values.
|
DoublePlant.Builder possibleTypes(DoublePlantType... types)
types
- Possible typesDoublePlant.Builder possibleTypes(Collection<DoublePlantType> types)
types
- A collection of possible typesDoublePlant.Builder perChunk(int count)
count
- The new base amountDoublePlant.Builder perChunkVariance(int variance)
variance
- The new amount varianceDoublePlant.Builder reset()
DoublePlant build() throws IllegalStateException
DoublePlant
populator with the
settings set within the builder.IllegalStateException
- If there are any settings left unset
which do not have default values