Class BendingTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.BendingTrunkPlacer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IntProvider
static final com.mojang.serialization.Codec<BendingTrunkPlacer>
private final int
Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT
-
Constructor Summary
ConstructorDescriptionBendingTrunkPlacer
(int p_161770_, int p_161771_, int p_161772_, int p_161773_, IntProvider p_161774_) -
Method Summary
Modifier and TypeMethodDescriptionplaceTrunk
(LevelSimulatedReader p_161777_, BiConsumer<BlockPos, BlockState> p_161778_, Random p_161779_, int p_161780_, BlockPos p_161781_, TreeConfiguration p_161782_) protected TrunkPlacerType<?>
type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getTreeHeight, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts
-
Field Details
-
CODEC
-
minHeightForLeaves
private final int minHeightForLeaves -
bendLength
-
-
Constructor Details
-
BendingTrunkPlacer
public BendingTrunkPlacer(int p_161770_, int p_161771_, int p_161772_, int p_161773_, IntProvider p_161774_)
-
-
Method Details
-
type
- Specified by:
type
in classTrunkPlacer
-
placeTrunk
public List<FoliagePlacer.FoliageAttachment> placeTrunk(LevelSimulatedReader p_161777_, BiConsumer<BlockPos, BlockState> p_161778_, Random p_161779_, int p_161780_, BlockPos p_161781_, TreeConfiguration p_161782_) - Specified by:
placeTrunk
in classTrunkPlacer
-