net.minecraft.world.level.levelgen.feature.trunkplacers

public class FancyTrunkPlacer

extends TrunkPlacer

dct
net.minecraft.world.level.levelgen.feature.trunkplacers.FancyTrunkPlacer
net.minecraft.class_5212
net.minecraft.world.gen.trunk.LargeOakTrunkPlacer
net.minecraft.src.C_2420_
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerFancy

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<FancyTrunkPlacer>
a
CODEC
field_24967
CODEC
f_70091_
private static final double
b
TRUNK_HEIGHT_SCALE
field_31524
field_31524
f_161796_
private static final double
h
CLUSTER_DENSITY_MAGIC
field_31525
field_31525
f_161797_
private static final double
i
BRANCH_SLOPE
field_31526
field_31526
f_161798_
private static final double
j
BRANCH_LENGTH_MAGIC
field_31527
field_31527
f_161799_

Constructor summary

ModifierConstructor
public (int p_70095_, int p_70096_, int arg2)

Method summary

Modifier and TypeMethod
protected TrunkPlacerType<?>
a()
type()
method_28903()
getType()
m_7362_()
public List<FoliagePlacer$FoliageAttachment>
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, int arg3, gj arg4, dba arg5)
placeTrunk(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, int arg3, BlockPos arg4, TreeConfiguration arg5)
method_26991(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, int arg3, class_2338 arg4, class_4643 arg5)
generate(TestableWorld arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, int arg3, BlockPos arg4, TreeFeatureConfig arg5)
m_142625_(C_1604_ p_161802_, BiConsumer<C_4675_, C_2064_> p_161803_, Random p_161804_, int p_161805_, C_4675_ p_161806_, C_2366_ arg5)
private boolean
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, gj arg3, gj arg4, boolean arg5, dba arg6)
makeLimb(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, BlockPos arg3, BlockPos arg4, boolean arg5, TreeConfiguration arg6)
method_27393(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_2338 arg3, class_2338 arg4, boolean arg5, class_4643 arg6)
makeOrCheckBranch(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeatureConfig config)
m_161815_(C_1604_ p_161817_, BiConsumer<C_4675_, C_2064_> p_161818_, Random p_161819_, C_4675_ p_161820_, C_4675_ p_161821_, boolean p_161822_, C_2366_ arg6)
private int
a(gj arg0)
getSteps(BlockPos arg0)
method_27394(class_2338 arg0)
getLongestSide(BlockPos offset)
m_70127_(C_4675_ arg0)
private Direction$Axis
a(gj arg0, gj arg1)
getLogAxis(BlockPos arg0, BlockPos arg1)
method_27395(class_2338 arg0, class_2338 arg1)
getLogAxis(BlockPos branchStart, BlockPos branchEnd)
m_70129_(C_4675_ p_70131_, C_4675_ arg1)
private boolean
a(int arg0, int arg1)
trimBranches(int arg0, int arg1)
method_27391(int arg0, int arg1)
isHighEnough(int treeHeight, int height)
m_70098_(int p_70100_, int arg1)
private void
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, int arg3, gj arg4, List<dct$a> arg5, dba arg6)
makeBranches(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, int arg3, BlockPos arg4, List<FancyTrunkPlacer$FoliageCoords> arg5, TreeConfiguration arg6)
method_27392(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, int arg3, class_2338 arg4, List<class_5212$class_5213> arg5, class_4643 arg6)
makeBranches(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer$BranchPosition> branchPositions, TreeFeatureConfig config)
m_161807_(C_1604_ p_161809_, BiConsumer<C_4675_, C_2064_> p_161810_, Random p_161811_, int p_161812_, C_4675_ p_161813_, List<C_2420_$C_2421_> p_161814_, C_2366_ arg6)
private static float
b(int arg0, int arg1)
treeShape(int arg0, int arg1)
method_27396(int arg0, int arg1)
shouldGenerateBranch(int treeHeight, int height)
m_70132_(int p_70133_, int p_70134_)