Modifier and Type | Interface and Description |
---|---|
static interface |
DoublePlant.Builder
A builder for constructing
DoublePlant populators. |
Modifier and Type | Method and Description |
---|---|
int |
getAmountVariance()
Gets the variance in the amount.
|
int |
getBaseAmount()
Gets the base number of plants to create.
|
ImmutableSet<DoublePlantType> |
getPossibleTypes()
Gets an immutable set of possible plants which may be selected to be
spawned in by this populator.
|
void |
setAmountVariance(int variance)
Sets the variance in the amount, must be greater than zero.
|
void |
setBaseAmount(int count)
Sets the base number of plants to create, cannot be negative.
|
void |
setPossibleTypes(Collection<DoublePlantType> types)
Sets which plant types may be spawned in by this populator.
|
void |
setPossibleTypes(DoublePlantType... types)
Sets which plant types may be spawned in by this populator.
|
ImmutableSet<DoublePlantType> getPossibleTypes()
void setPossibleTypes(Collection<DoublePlantType> types)
types
- A collection of possible typesvoid setPossibleTypes(DoublePlantType... types)
types
- Possible typesint getBaseAmount()
void setBaseAmount(int count)
count
- The new base amountint getAmountVariance()
void setAmountVariance(int variance)
variance
- The new amount variance