Interface PaleMossDecorator
- All Superinterfaces:
TreeDecorator, Wrapper
Places the
minecraft:pale_moss_patch configured feature at the position of the lowest log with
probability groundProbability().
Adds hanging moss to the bottom of trunk and foliage blocks with probability trunkProbability() and
leavesProbability() respectively.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PaleMossDecorator.Builderbuilder()Creates a new builder.floatThe probability of placing theminecraft:pale_moss_patchconfigured feature at the position of the lowest log, between 0.0F and 1.0F (inclusive).floatThe probability of adding hanging moss to the bottom of foliage blocks, between 0.0F and 1.0F (inclusive).static PaleMossDecoratorof(float leavesProbability, float trunkProbability, float groundProbability) Creates a new pale moss decorator.default PaleMossDecorator.BuilderConverts this object back to a builder.floatThe probability of adding hanging moss to the bottom of trunk blocks, between 0.0F and 1.0F (inclusive).Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
leavesProbability
The probability of adding hanging moss to the bottom of foliage blocks, between 0.0F and 1.0F (inclusive).- Returns:
- the leaves probability
- Since:
- 3.0.0
-
trunkProbability
The probability of adding hanging moss to the bottom of trunk blocks, between 0.0F and 1.0F (inclusive).- Returns:
- the trunk probability
- Since:
- 3.0.0
-
groundProbability
The probability of placing theminecraft:pale_moss_patchconfigured feature at the position of the lowest log, between 0.0F and 1.0F (inclusive).- Returns:
- the ground probability
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
@AsOf("3.0.0") static PaleMossDecorator of(float leavesProbability, float trunkProbability, float groundProbability) Creates a new pale moss decorator.- Parameters:
leavesProbability- the probability of adding hanging moss to the bottom of foliage blocks, between 0.0F and 1.0F (inclusive)trunkProbability- the probability of adding hanging moss to the bottom of trunk blocks, between 0.0F and 1.0F (inclusive)groundProbability- the probability of placing the pale moss patch at the lowest log, between 0.0F and 1.0F (inclusive)- Returns:
- a new pale moss decorator
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-