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
FieldsModifier and TypeFieldDescriptionprotected final BlockStateProviderstatic final com.mojang.serialization.MapCodec<AttachedToLeavesDecorator> protected final intprotected final intprotected final floatprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionAttachedToLeavesDecorator(float probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanhasRequiredEmptyBlocks(TreeDecorator.Context context, BlockPos pos, Direction direction) voidplace(TreeDecorator.Context context) 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 probability, int exclusionRadiusXZ, int exclusionRadiusY, BlockStateProvider blockProvider, int requiredEmptyBlocks, List<Direction> directions)
-
-
Method Details
-
place
- Specified by:
placein classTreeDecorator
-
hasRequiredEmptyBlocks
private boolean hasRequiredEmptyBlocks(TreeDecorator.Context context, BlockPos pos, Direction direction) -
type
- Specified by:
typein classTreeDecorator
-