Class FancyTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.FancyTrunkPlacer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final double
private static final double
private static final double
static final com.mojang.serialization.Codec<FancyTrunkPlacer>
private static final double
Fields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Direction.Axis
getLogAxis
(BlockPos p_70130_, BlockPos p_70131_) private int
private void
makeBranches
(LevelSimulatedReader p_226100_, BiConsumer<BlockPos, BlockState> p_226101_, RandomSource p_226102_, int p_226103_, BlockPos p_226104_, List<FancyTrunkPlacer.FoliageCoords> p_226105_, TreeConfiguration p_226106_) private boolean
makeLimb
(LevelSimulatedReader p_226108_, BiConsumer<BlockPos, BlockState> p_226109_, RandomSource p_226110_, BlockPos p_226111_, BlockPos p_226112_, boolean p_226113_, TreeConfiguration p_226114_) placeTrunk
(LevelSimulatedReader p_226093_, BiConsumer<BlockPos, BlockState> p_226094_, RandomSource p_226095_, int p_226096_, BlockPos p_226097_, TreeConfiguration p_226098_) private static float
treeShape
(int p_70133_, int p_70134_) private boolean
trimBranches
(int p_70099_, int p_70100_) 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
-
TRUNK_HEIGHT_SCALE
private static final double TRUNK_HEIGHT_SCALE- See Also:
-
CLUSTER_DENSITY_MAGIC
private static final double CLUSTER_DENSITY_MAGIC- See Also:
-
BRANCH_SLOPE
private static final double BRANCH_SLOPE- See Also:
-
BRANCH_LENGTH_MAGIC
private static final double BRANCH_LENGTH_MAGIC- See Also:
-
-
Constructor Details
-
FancyTrunkPlacer
public FancyTrunkPlacer(int p_70094_, int p_70095_, int p_70096_)
-
-
Method Details
-
type
- Specified by:
type
in classTrunkPlacer
-
placeTrunk
public List<FoliagePlacer.FoliageAttachment> placeTrunk(LevelSimulatedReader p_226093_, BiConsumer<BlockPos, BlockState> p_226094_, RandomSource p_226095_, int p_226096_, BlockPos p_226097_, TreeConfiguration p_226098_) - Specified by:
placeTrunk
in classTrunkPlacer
-
makeLimb
private boolean makeLimb(LevelSimulatedReader p_226108_, BiConsumer<BlockPos, BlockState> p_226109_, RandomSource p_226110_, BlockPos p_226111_, BlockPos p_226112_, boolean p_226113_, TreeConfiguration p_226114_) -
getSteps
-
getLogAxis
-
trimBranches
private boolean trimBranches(int p_70099_, int p_70100_) -
makeBranches
private void makeBranches(LevelSimulatedReader p_226100_, BiConsumer<BlockPos, BlockState> p_226101_, RandomSource p_226102_, int p_226103_, BlockPos p_226104_, List<FancyTrunkPlacer.FoliageCoords> p_226105_, TreeConfiguration p_226106_) -
treeShape
private static float treeShape(int p_70133_, int p_70134_)
-