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

public abstract class TrunkPlacer

cys
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.class_5141
net.minecraft.unmapped.C_rojhohdd
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
f_skzuxwwp
TYPE_CODEC
f_70262_
private static final int
a
MAX_BASE_HEIGHT
field_31528
f_oqmfjlgl
MAX_BASE_HEIGHT
f_161865_
private static final int
b
MAX_RAND
field_31529
f_gcyymejm
MAX_RANDOM_HEIGHT
f_161866_
public static final int
d
MAX_HEIGHT
field_31530
f_ouqwhqkk
field_31530
f_161867_
protected final int
e
baseHeight
field_23760
f_abhxfqww
baseHeight
f_70263_
protected final int
f
heightRandA
field_23761
f_mkqgyfge
firstRandomHeight
f_70264_
protected final int
g
heightRandB
field_23762
f_xgekxsic
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)
m_zmfglcmb(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()
m_ztpkjmfe()
getType()
m_7362_()
public abstract List<FoliagePlacer$FoliageAttachment>
a(bwv arg0, BiConsumer<gg, cks> arg1, Random arg2, int arg3, gg arg4, cwm 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)
m_ttadazwj(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, Random arg2, int arg3, C_hynzadkk arg4, C_zthydktd 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)
m_ensuiaqn(Random arg0)
getHeight(Random random)
m_70309_(Random arg0)
private static boolean
a(bwv arg0, gg arg1)
isDirt(LevelSimulatedReader arg0, BlockPos arg1)
method_27403(class_3746 arg0, class_2338 arg1)
m_kwohbugv(C_agsukcmb arg0, C_hynzadkk arg1)
canGenerate(TestableWorld world, BlockPos pos)
m_70295_(C_1604_ p_70296_, C_4675_ p_70297_)
protected static void
a(bwv arg0, BiConsumer<gg, cks> arg1, Random arg2, gg arg3, cwm 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)
m_unyewomb(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, Random arg2, C_hynzadkk arg3, C_zthydktd 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(bwv arg0, BiConsumer<gg, cks> arg1, Random arg2, gg arg3, cwm 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)
m_gwxnywdv(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, Random arg2, C_hynzadkk arg3, C_zthydktd 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(bwv arg0, BiConsumer<gg, cks> arg1, Random arg2, gg arg3, cwm arg4, Function<cks, cks> 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)
m_gkukhgzw(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, Random arg2, C_hynzadkk arg3, C_zthydktd arg4, Function<C_txtbiemp, C_txtbiemp> 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(bwv arg0, BiConsumer<gg, cks> arg1, Random arg2, gg$a arg3, cwm 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)
m_ozvnumml(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, Random arg2, C_hynzadkk$C_egqitdjk arg3, C_zthydktd 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_)