Class AttachedToLeavesDecorator
java.lang.Object
net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator
net.minecraft.world.level.levelgen.feature.treedecorators.AttachedToLeavesDecorator
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator
TreeDecorator.Context
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BlockStateProvider
static final com.mojang.serialization.Codec<AttachedToLeavesDecorator>
protected final int
protected final int
protected final float
protected final int
-
Constructor Summary
ConstructorDescriptionAttachedToLeavesDecorator
(float p_225988_, int p_225989_, int p_225990_, BlockStateProvider p_225991_, int p_225992_, List<Direction> p_225993_) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
hasRequiredEmptyBlocks
(TreeDecorator.Context p_226002_, BlockPos p_226003_, Direction p_226004_) void
place
(TreeDecorator.Context p_226000_) protected TreeDecoratorType<?>
type()
-
Field Details
-
CODEC
-
probability
protected final float probability -
exclusionRadiusXZ
protected final int exclusionRadiusXZ -
exclusionRadiusY
protected final int exclusionRadiusY -
blockProvider
-
requiredEmptyBlocks
protected final int requiredEmptyBlocks -
directions
-
-
Constructor Details
-
AttachedToLeavesDecorator
public AttachedToLeavesDecorator(float p_225988_, int p_225989_, int p_225990_, BlockStateProvider p_225991_, int p_225992_, List<Direction> p_225993_)
-
-
Method Details
-
place
- Specified by:
place
in classTreeDecorator
-
hasRequiredEmptyBlocks
private boolean hasRequiredEmptyBlocks(TreeDecorator.Context p_226002_, BlockPos p_226003_, Direction p_226004_) -
type
- Specified by:
type
in classTreeDecorator
-