Class CocoaDecorator.Builder
java.lang.Object
dev.wyck.worldgen.feature.treedecorators.CocoaDecorator.Builder
- Enclosing interface:
CocoaDecorator
Builder for
CocoaDecorator.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the cocoa decorator.probability(float probability) Sets the probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive).
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
probability
Sets the probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive).- Parameters:
probability- the probability- Returns:
- this builder
- Since:
- 3.0.0
-
build
Builds the cocoa decorator.- Returns:
- a new cocoa decorator
- Since:
- 3.0.0
-