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 double
private static double
private static double
static com.mojang.serialization.Codec<FancyTrunkPlacer>
private static 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_161808_, BiConsumer<BlockPos,BlockState> p_161809_, Random p_161810_, int p_161811_, BlockPos p_161812_, List<FancyTrunkPlacer.FoliageCoords> p_161813_, TreeConfiguration p_161814_)
private boolean
makeLimb(LevelSimulatedReader p_161816_, BiConsumer<BlockPos,BlockState> p_161817_, Random p_161818_, BlockPos p_161819_, BlockPos p_161820_, boolean p_161821_, TreeConfiguration p_161822_)
placeTrunk(LevelSimulatedReader p_161801_, BiConsumer<BlockPos,BlockState> p_161802_, Random p_161803_, int p_161804_, BlockPos p_161805_, TreeConfiguration p_161806_)
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, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts
-
Field Details
-
CODEC
-
TRUNK_HEIGHT_SCALE
private static final double TRUNK_HEIGHT_SCALE- See Also:
- Constant Field Values
-
CLUSTER_DENSITY_MAGIC
private static final double CLUSTER_DENSITY_MAGIC- See Also:
- Constant Field Values
-
BRANCH_SLOPE
private static final double BRANCH_SLOPE- See Also:
- Constant Field Values
-
BRANCH_LENGTH_MAGIC
private static final double BRANCH_LENGTH_MAGIC- See Also:
- Constant Field Values
-
-
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_161801_, BiConsumer<BlockPos,BlockState> p_161802_, Random p_161803_, int p_161804_, BlockPos p_161805_, TreeConfiguration p_161806_)- Specified by:
placeTrunk
in classTrunkPlacer
-
makeLimb
private boolean makeLimb(LevelSimulatedReader p_161816_, BiConsumer<BlockPos,BlockState> p_161817_, Random p_161818_, BlockPos p_161819_, BlockPos p_161820_, boolean p_161821_, TreeConfiguration p_161822_) -
getSteps
-
getLogAxis
-
trimBranches
private boolean trimBranches(int p_70099_, int p_70100_) -
makeBranches
private void makeBranches(LevelSimulatedReader p_161808_, BiConsumer<BlockPos,BlockState> p_161809_, Random p_161810_, int p_161811_, BlockPos p_161812_, List<FancyTrunkPlacer.FoliageCoords> p_161813_, TreeConfiguration p_161814_) -
treeShape
private static float treeShape(int p_70133_, int p_70134_)
-