net.minecraft.world.gen.trunk

public class LargeOakTrunkPlacer

extends TrunkPlacer

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<LargeOakTrunkPlacer>
CODEC
field_24967
CODEC
private static final double
TRUNK_HEIGHT_SCALE
field_31524
field_31524
private static final double
CLUSTER_DENSITY_MAGIC
field_31525
field_31525
private static final double
BRANCH_SLOPE
field_31526
field_31526
private static final double
BRANCH_LENGTH_MAGIC
field_31527
field_31527

Constructor summary

ModifierConstructor
public (int baseHeight, int heightRandA, int heightRandB)

Method summary

Modifier and TypeMethod
protected TrunkPlacerType<?>
type()
method_28903()
getType()
public List<FoliagePlacer$TreeNode>
placeTrunk(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, int treeHeight, BlockPos origin, TreeFeature tree)
method_26991(class_5281 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, int arg3, class_2338 arg4, class_2944 arg5)
generate(StructureWorldAccess arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, int arg3, BlockPos arg4, TreeFeature arg5)
private boolean
makeLimb(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, BlockPos startPos, BlockPos endPos, boolean doPlace, TreeFeature tree)
method_27393(class_5281 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338 arg3, class_2338 arg4, boolean arg5, class_2944 arg6)
makeOrCheckBranch(StructureWorldAccess arg0, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos startPos, BlockPos branchPos, boolean make, TreeFeature arg6)
private int
getSteps(BlockPos pos)
method_27394(class_2338 arg0)
getLongestSide(BlockPos offset)
private Direction$Axis
getLogAxis(BlockPos startPos, BlockPos blockPos)
method_27395(class_2338 arg0, class_2338 arg1)
getLogAxis(BlockPos branchStart, BlockPos branchEnd)
private boolean
trimBranches(int height, int localY)
method_27391(int arg0, int arg1)
isHighEnough(int treeHeight, int height)
private void
makeBranches(WorldGenLevel level, BiConsumer<BlockPos, BlockState> trunkSetter, RandomSource random, int height, BlockPos origin, List<FancyTrunkPlacer$FoliageCoords> foliageCoords, TreeFeature tree)
method_27392(class_5281 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, int arg3, class_2338 arg4, List<class_5212$class_5213> arg5, class_2944 arg6)
makeBranches(StructureWorldAccess arg0, BiConsumer<BlockPos, BlockState> replacer, Random random, int treeHeight, BlockPos startPos, List<LargeOakTrunkPlacer$BranchPosition> branchPositions, TreeFeature arg6)
private static float
treeShape(int height, int y)
method_27396(int arg0, int arg1)
shouldGenerateBranch(int treeHeight, int height)
private BlockState
lambda$makeLimb$0(BlockPos arg0, BlockPos arg1, BlockState arg2)
method_35374(class_2338 arg0, class_2338 arg1, class_2680 arg2)
method_35374(BlockPos arg0, BlockPos arg1, BlockState state)
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_28898(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_28898(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)