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

public abstract class TrunkPlacer

dcr
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.class_5141
net.minecraft.world.gen.trunk.TrunkPlacer
net.minecraft.src.C_2428_
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<TrunkPlacer>
c
CODEC
field_24972
TYPE_CODEC
f_70262_
private static final int
a
MAX_BASE_HEIGHT
field_31528
MAX_BASE_HEIGHT
f_161865_
private static final int
b
MAX_RAND
field_31529
MAX_RANDOM_HEIGHT
f_161866_
public static final int
d
MAX_HEIGHT
field_31530
field_31530
f_161867_
protected final int
e
baseHeight
field_23760
baseHeight
f_70263_
protected final int
f
heightRandA
field_23761
firstRandomHeight
f_70264_
protected final int
g
heightRandB
field_23762
secondRandomHeight
f_70265_

Constructor summary

ModifierConstructor
public (int baseHeight, int firstRandomHeight, int secondRandomHeight)

Method summary

Modifier and TypeMethod
protected static <P extends TrunkPlacer> com.mojang.datafixers.Products$P3<com.mojang.serialization.codecs.RecordCodecBuilder$Mu<P>, Integer, Integer, Integer>
a(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
trunkPlacerParts(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
method_28904(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
fillTrunkPlacerFields(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> instance)
m_70305_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> p_70306_)
protected abstract TrunkPlacerType<?>
a()
type()
method_28903()
getType()
m_7362_()
public abstract List<FoliagePlacer$FoliageAttachment>
a(caj arg0, BiConsumer<gh, coc> arg1, Random arg2, int arg3, gh arg4, dai 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 world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config)
m_142625_(C_1604_ p_161869_, BiConsumer<C_4675_, C_2064_> p_161870_, Random p_161871_, int p_161872_, C_4675_ p_161873_, C_2366_ arg5)
public int
a(Random arg0)
getTreeHeight(Random arg0)
method_26993(Random arg0)
getHeight(Random random)
m_70309_(Random arg0)
private static boolean
a(caj arg0, gh arg1)
isDirt(LevelSimulatedReader arg0, BlockPos arg1)
method_27403(class_3746 arg0, class_2338 arg1)
canGenerate(TestableWorld world, BlockPos pos)
m_70295_(C_1604_ p_70296_, C_4675_ p_70297_)
protected static void
a(caj arg0, BiConsumer<gh, coc> arg1, Random arg2, gh arg3, dai arg4)
setDirtAt(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, BlockPos arg3, TreeConfiguration arg4)
method_27400(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_2338 arg3, class_4643 arg4)
setToDirt(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config)
m_161880_(C_1604_ p_161881_, BiConsumer<C_4675_, C_2064_> p_161882_, Random p_161883_, C_4675_ p_161884_, C_2366_ p_161885_)
protected static boolean
b(caj arg0, BiConsumer<gh, coc> arg1, Random arg2, gh arg3, dai arg4)
placeLog(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, BlockPos arg3, TreeConfiguration arg4)
method_35375(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_2338 arg3, class_4643 arg4)
getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config)
m_161893_(C_1604_ p_161894_, BiConsumer<C_4675_, C_2064_> p_161895_, Random p_161896_, C_4675_ p_161897_, C_2366_ p_161898_)
protected static boolean
a(caj arg0, BiConsumer<gh, coc> arg1, Random arg2, gh arg3, dai arg4, Function<coc, coc> arg5)
placeLog(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, BlockPos arg3, TreeConfiguration arg4, Function<BlockState, BlockState> arg5)
method_27402(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_2338 arg3, class_4643 arg4, Function<class_2680, class_2680> arg5)
getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> stateProvider)
m_161886_(C_1604_ p_161887_, BiConsumer<C_4675_, C_2064_> p_161888_, Random p_161889_, C_4675_ p_161890_, C_2366_ p_161891_, Function<C_2064_, C_2064_> p_161892_)
protected static void
a(caj arg0, BiConsumer<gh, coc> arg1, Random arg2, gh$a arg3, dai arg4)
placeLogIfFree(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, BlockPos$MutableBlockPos arg3, TreeConfiguration arg4)
method_27401(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_2338$class_2339 arg3, class_4643 arg4)
trySetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos$Mutable pos, TreeFeatureConfig config)
m_161874_(C_1604_ p_161875_, BiConsumer<C_4675_, C_2064_> p_161876_, Random p_161877_, C_4675_$C_4681_ p_161878_, C_2366_ p_161879_)