Interface CherryFoliagePlacer
- All Superinterfaces:
FoliagePlacer, Wrapper
Places the foliage of a cherry tree, optionally with holes and hanging leaves.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface FoliagePlacer
FoliagePlacer.FoliagePlacerBuilder<T,P> -
Method Summary
Modifier and TypeMethodDescriptionstatic CherryFoliagePlacer.Builderbuilder()Creates a new builder.floatThe probability of a hole in the corners, between 0.0F and 1.0F (inclusive).floatThe probability of generating hanging leaves, between 0.0F and 1.0F (inclusive).floatThe probability of extending hanging leaves, between 0.0F and 1.0F (inclusive).height()The foliage's height, between 4 and 16 (inclusive).static CherryFoliagePlacerof(IntProvider radius, IntProvider offset, IntProvider height, float wideBottomLayerHoleChance, float cornerHoleChance, float hangingLeavesChance, float hangingLeavesExtensionChance) Creates a new cherry foliage placer.default CherryFoliagePlacer.BuilderConverts this object back to a builder.floatThe probability of a hole in the wide bottom layer, between 0.0F and 1.0F (inclusive).Methods inherited from interface FoliagePlacer
offset, radiusMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
height
The foliage's height, between 4 and 16 (inclusive).- Returns:
- the height
- Since:
- 3.0.0
-
wideBottomLayerHoleChance
The probability of a hole in the wide bottom layer, between 0.0F and 1.0F (inclusive).- Returns:
- the wide bottom layer hole chance
- Since:
- 3.0.0
-
cornerHoleChance
The probability of a hole in the corners, between 0.0F and 1.0F (inclusive).- Returns:
- the corner hole chance
- Since:
- 3.0.0
-
hangingLeavesChance
The probability of generating hanging leaves, between 0.0F and 1.0F (inclusive).- Returns:
- the hanging leaves chance
- Since:
- 3.0.0
-
hangingLeavesExtensionChance
The probability of extending hanging leaves, between 0.0F and 1.0F (inclusive).- Returns:
- the hanging leaves extension chance
- 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 CherryFoliagePlacer of(IntProvider radius, IntProvider offset, IntProvider height, float wideBottomLayerHoleChance, float cornerHoleChance, float hangingLeavesChance, float hangingLeavesExtensionChance) Creates a new cherry foliage placer.- Parameters:
radius- the radius of the foliageoffset- the vertical offset from the top of the trunk to the top of the foliageheight- the foliage's height, between 4 and 16 (inclusive)wideBottomLayerHoleChance- the probability of a hole in the wide bottom layer, between 0.0F and 1.0F (inclusive)cornerHoleChance- the probability of a hole in the corners, between 0.0F and 1.0F (inclusive)hangingLeavesChance- the probability of generating hanging leaves, between 0.0F and 1.0F (inclusive)hangingLeavesExtensionChance- the probability of extending hanging leaves, between 0.0F and 1.0F (inclusive)- Returns:
- a new cherry foliage placer
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-