Class CherryTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.CherryTrunkPlacer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec<UniformInt>
private final IntProvider
private final IntProvider
private final IntProvider
private final UniformInt
static final com.mojang.serialization.Codec<CherryTrunkPlacer>
private final UniformInt
Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT
-
Constructor Summary
ConstructorDescriptionCherryTrunkPlacer
(int p_273281_, int p_273327_, int p_272619_, IntProvider p_272873_, IntProvider p_272789_, UniformInt p_272917_, IntProvider p_272948_) -
Method Summary
Modifier and TypeMethodDescriptionprivate FoliagePlacer.FoliageAttachment
generateBranch
(LevelSimulatedReader p_272736_, BiConsumer<BlockPos, BlockState> p_273092_, RandomSource p_273449_, int p_272659_, BlockPos p_273743_, TreeConfiguration p_273027_, Function<BlockState, BlockState> p_273558_, Direction p_273712_, int p_272980_, boolean p_272719_, BlockPos.MutableBlockPos p_273496_) placeTrunk
(LevelSimulatedReader p_272827_, BiConsumer<BlockPos, BlockState> p_272650_, RandomSource p_272993_, int p_272990_, BlockPos p_273471_, TreeConfiguration p_273355_) 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
-
BRANCH_START_CODEC
-
CODEC
-
branchCount
-
branchHorizontalLength
-
branchStartOffsetFromTop
-
secondBranchStartOffsetFromTop
-
branchEndOffsetFromTop
-
-
Constructor Details
-
CherryTrunkPlacer
public CherryTrunkPlacer(int p_273281_, int p_273327_, int p_272619_, IntProvider p_272873_, IntProvider p_272789_, UniformInt p_272917_, IntProvider p_272948_)
-
-
Method Details
-
type
- Specified by:
type
in classTrunkPlacer
-
placeTrunk
public List<FoliagePlacer.FoliageAttachment> placeTrunk(LevelSimulatedReader p_272827_, BiConsumer<BlockPos, BlockState> p_272650_, RandomSource p_272993_, int p_272990_, BlockPos p_273471_, TreeConfiguration p_273355_) - Specified by:
placeTrunk
in classTrunkPlacer
-
generateBranch
private FoliagePlacer.FoliageAttachment generateBranch(LevelSimulatedReader p_272736_, BiConsumer<BlockPos, BlockState> p_273092_, RandomSource p_273449_, int p_272659_, BlockPos p_273743_, TreeConfiguration p_273027_, Function<BlockState, BlockState> p_273558_, Direction p_273712_, int p_272980_, boolean p_272719_, BlockPos.MutableBlockPos p_273496_)
-