Interface CocoaDecorator
- All Superinterfaces:
TreeDecorator, Wrapper
Places cocoa beans on the bottom 3 blocks of the trunk with a probability of 25% for each face.
The specified probability determines how often any cocoa beans are placed.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CocoaDecorator.Builderbuilder()Creates a new builder.static CocoaDecoratorof(float probability) Creates a new cocoa decorator.floatThe probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive).default CocoaDecorator.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
probability
The probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive).- Returns:
- the 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
Creates a new cocoa decorator.- Parameters:
probability- the probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive)- Returns:
- a new cocoa decorator
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-