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.MapCodec
<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_226079_, BiConsumer<BlockPos, BlockState> p_226080_, RandomSource p_226081_, int p_226082_, BlockPos p_226083_, TreeConfiguration p_226084_) protected TrunkPlacerType
<?> type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getTreeHeight, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts, validTreePos
-
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_226079_, BiConsumer<BlockPos, BlockState> p_226080_, RandomSource p_226081_, int p_226082_, BlockPos p_226083_, TreeConfiguration p_226084_) - Specified by:
placeTrunk
in classTrunkPlacer
-