Class PlaceOnGroundDecorator
java.lang.Object
net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator
net.minecraft.world.level.levelgen.feature.treedecorators.PlaceOnGroundDecorator
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.treedecorators.TreeDecorator
TreeDecorator.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateProviderstatic final com.mojang.serialization.MapCodec<PlaceOnGroundDecorator> private final intprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionPlaceOnGroundDecorator(int tries, int radius, int height, BlockStateProvider blockStateProvider) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidattemptToPlaceBlockAbove(TreeDecorator.Context context, BlockPos pos) voidplace(TreeDecorator.Context context) protected TreeDecoratorType<?> type()
-
Field Details
-
CODEC
-
tries
private final int tries -
radius
private final int radius -
height
private final int height -
blockStateProvider
-
-
Constructor Details
-
PlaceOnGroundDecorator
public PlaceOnGroundDecorator(int tries, int radius, int height, BlockStateProvider blockStateProvider)
-
-
Method Details
-
type
- Specified by:
typein classTreeDecorator
-
place
- Specified by:
placein classTreeDecorator
-
attemptToPlaceBlockAbove
-