Modifier and Type | Interface and Description |
---|---|
static interface |
Forest.Builder
A builder for constructing
Forest populators. |
Modifier and Type | Method and Description |
---|---|
Optional<BlockState> |
getLeavesMaterial()
Gets the
BlockState to spawn the leaves of the tree with. |
int |
getTreesPerChunk()
Gets the number of trees to attempt to spawn per chunk, must be greater
than zero.
|
Optional<BlockState> |
getTrunkMaterial()
Gets the
BlockState to spawn the trunk of the tree with. |
Optional<BiomeTreeType> |
getType()
Gets the
BiomeTreeType to spawn. |
boolean |
isBiomeDependent()
Gets whether this populator will ignore the set tree type and default to
the biome's tree type.
|
void |
setBiomeDependent(boolean state)
Gets whether this populator will ignore the set tree type and default to
the biome's tree type.
|
void |
setLeavesMaterial(BlockState material)
Sets the
BlockState to spawn the leaves of the tree with, this
automatically sets the biome dependency flag to false. |
void |
setTreesPerChunk(int count)
Sets the number of trees to attempt to spawn per chunk, must be greater
than zero.
|
void |
setTrunkMaterial(BlockState material)
Sets the
BlockState to spawn the trunk of the tree with, this
automatically sets the biome dependency flag to false. |
void |
setType(BiomeTreeType type)
Sets the
BiomeTreeType to spawn, this automatically sets the
biome dependency flag to false. |
int getTreesPerChunk()
void setTreesPerChunk(int count)
count
- The new amount to spawnboolean isBiomeDependent()
void setBiomeDependent(boolean state)
state
- The new biome dependency stateOptional<BiomeTreeType> getType()
BiomeTreeType
to spawn. If this populator is set to be
biome dependent ( isBiomeDependent()
) then this will return
absent.void setType(BiomeTreeType type)
BiomeTreeType
to spawn, this automatically sets the
biome dependency flag to false.type
- The new type to spawnOptional<BlockState> getTrunkMaterial()
BlockState
to spawn the trunk of the tree with. If this
populator is set to be biome dependent ( isBiomeDependent()
)
then this will return absent.void setTrunkMaterial(BlockState material)
BlockState
to spawn the trunk of the tree with, this
automatically sets the biome dependency flag to false.material
- The new trunk materialOptional<BlockState> getLeavesMaterial()
BlockState
to spawn the leaves of the tree with. If this
populator is set to be biome dependent ( isBiomeDependent()
)
then this will return absent.void setLeavesMaterial(BlockState material)
BlockState
to spawn the leaves of the tree with, this
automatically sets the biome dependency flag to false.material
- The new leaves material