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

public class FancyTrunkPlacer

extends TrunkPlacer

emb
net.minecraft.world.level.levelgen.feature.trunkplacers.FancyTrunkPlacer
net.minecraft.class_5212
net.minecraft.world.gen.trunk.LargeOakTrunkPlacer
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerFancy

Field summary

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

Constructor summary

ModifierConstructor
public (int arg0, int arg1, int arg2)

Method summary

Modifier and TypeMethod
protected TrunkPlacerType<?>
a()
type()
method_28903()
getType()
public List<FoliagePlacer$FoliageAttachment>
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, int arg3, jh arg4, ejw arg5)
placeTrunk(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, int arg3, BlockPos arg4, TreeConfiguration arg5)
method_26991(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, int arg3, class_2338 arg4, class_4643 arg5)
generate(TestableWorld arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, int arg3, BlockPos arg4, TreeFeatureConfig arg5)
private boolean
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, jh arg3, jh arg4, boolean arg5, ejw arg6)
makeLimb(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos arg3, BlockPos arg4, boolean arg5, TreeConfiguration arg6)
method_27393(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 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)
private int
a(jh arg0)
getSteps(BlockPos arg0)
method_27394(class_2338 arg0)
getLongestSide(BlockPos offset)
private Direction$Axis
a(jh arg0, jh arg1)
getLogAxis(BlockPos arg0, BlockPos arg1)
method_27395(class_2338 arg0, class_2338 arg1)
getLogAxis(BlockPos branchStart, BlockPos branchEnd)
private boolean
a(int arg0, int arg1)
trimBranches(int arg0, int arg1)
method_27391(int arg0, int arg1)
isHighEnough(int treeHeight, int height)
private void
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, int arg3, jh arg4, List<emb$a> arg5, ejw arg6)
makeBranches(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, int arg3, BlockPos arg4, List<FancyTrunkPlacer$FoliageCoords> arg5, TreeConfiguration arg6)
method_27392(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 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)
private static float
b(int arg0, int arg1)
treeShape(int arg0, int arg1)
method_27396(int arg0, int arg1)
shouldGenerateBranch(int treeHeight, int height)