Interface TreeDecorator
- All Superinterfaces:
Wrapper
- All Known Subinterfaces:
AlterGroundDecorator, AttachedToLeavesDecorator, AttachedToLogsDecorator, BeehiveDecorator, CocoaDecorator, CreakingHeartDecorator, LeaveVineDecorator, PaleMossDecorator, PlaceOnGroundDecorator, TrunkVineDecorator
Decorators are used to add additional blocks to various parts of the tree.
- Since:
- 3.0.0
- See Also:
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic AlterGroundDecoratoralterGround(BlockStateProvider provider) Replaces blocks in the#minecraft:dirttag around the tree with different blocks.Attaches blocks to the exposed faces of all foliage blocks in specified directions.Attaches blocks to the exposed faces of all trunk blocks in specified directions.static BeehiveDecoratorbeehive(float probability) Places a single beehive with the specified probability.static CocoaDecoratorcocoa(float probability) Places cocoa beans on the bottom 3 blocks of the trunk with a probability of 25% for each face.static CreakingHeartDecoratorcreakingHeart(float probability) Places a creaking heart, replacing a trunk block in a position where all 6 surrounding blocks are in the#minecraft:logstag.static TreeDecoratorstatic LeaveVineDecoratorleaveVine(float probability) Places vines attached to any foliage blocks.static PaleMossDecorator.BuilderpaleMoss()Places theminecraft:pale_moss_patchconfigured feature at the position of the lowest log, and adds hanging moss to the bottom of trunk and foliage blocks.Tries positions within the specified radius and height range to find a valid ground position, and places the specified block on the block above any matching positions.static TrunkVineDecoratorAdds vines to each side of each trunk block with a probability of 75% each.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
alterGround
Replaces blocks in the#minecraft:dirttag around the tree with different blocks.- Parameters:
provider- The block state provider to use.- Returns:
- The alter ground decorator.
- Since:
- 3.0.0
-
attachedToLeaves
Attaches blocks to the exposed faces of all foliage blocks in specified directions.- Returns:
- The attached to leaves decorator.
- Since:
- 3.0.0
-
attachedToLogs
Attaches blocks to the exposed faces of all trunk blocks in specified directions.- Returns:
- The attached to logs decorator.
- Since:
- 3.0.0
-
beehive
Places a single beehive with the specified probability. The beehive is always located 1 block below the lowest leaves block, but possibly on a different branch.- Parameters:
probability- The probability of placing a beehive, between 0.0F and 1.0F (inclusive).- Returns:
- The beehive decorator.
- Since:
- 3.0.0
-
cocoa
Places cocoa beans on the bottom 3 blocks of the trunk with a probability of 25% for each face.- Parameters:
probability- The probability that this decorator places any cocoa beans, between 0.0F and 1.0F (inclusive).- Returns:
- The cocoa decorator.
- Since:
- 3.0.0
-
creakingHeart
Places a creaking heart, replacing a trunk block in a position where all 6 surrounding blocks are in the#minecraft:logstag.- Parameters:
probability- The probability of placing a creaking heart, between 0.0F and 1.0F (inclusive).- Returns:
- The creaking heart decorator.
- Since:
- 3.0.0
-
leaveVine
Places vines attached to any foliage blocks. Each vine is extended by 4 blocks downwards if possible.- Parameters:
probability- The probability of placing a vine at any given position, between 0.0F and 1.0F (inclusive).- Returns:
- The leave vine decorator.
- Since:
- 3.0.0
-
paleMoss
Places theminecraft:pale_moss_patchconfigured feature at the position of the lowest log, and adds hanging moss to the bottom of trunk and foliage blocks.- Returns:
- The pale moss decorator builder.
- Since:
- 3.0.0
-
placeOnGround
Tries positions within the specified radius and height range to find a valid ground position, and places the specified block on the block above any matching positions.- Returns:
- The place on ground decorator builder.
- Since:
- 3.0.0
-
trunkVine
Adds vines to each side of each trunk block with a probability of 75% each.- Returns:
- The trunk vine decorator.
- Since:
- 3.0.0
-
decode
-