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

public abstract class TrunkPlacer

ehm
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.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
TYPE_CODEC
f_70262_
private static final int
a
MAX_BASE_HEIGHT
field_31528
f_oqmfjlgl
MAX_BASE_HEIGHT
MAX_BASE_HEIGHT
f_161865_
private static final int
b
MAX_RAND
field_31529
f_gcyymejm
MAX_RANDOM_HEIGHT
MAX_RANDOM_HEIGHT
f_161866_
public static final int
d
MAX_HEIGHT
field_31530
f_ouqwhqkk
field_31530
MAX_HEIGHT
f_161867_
protected final int
e
baseHeight
field_23760
f_abhxfqww
baseHeight
baseHeight
f_70263_
protected final int
f
heightRandA
field_23761
f_mkqgyfge
firstRandomHeight
firstRandomHeight
f_70264_
protected final int
g
heightRandB
field_23762
f_xgekxsic
secondRandomHeight
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)
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()
getType()
m_7362_()
public abstract List<FoliagePlacer$FoliageAttachment>
a(ddc arg0, BiConsumer<jd, dtc> arg1, ayw arg2, int arg3, jd arg4, efe 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)
m_ttadazwj(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, int arg3, C_hynzadkk arg4, C_zthydktd arg5)
generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, int height, BlockPos startPos, TreeFeatureConfig config)
generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator random, int height, BlockPos startPos, TreeFeatureConfig config)
m_213934_(C_1604_ p_226158_, BiConsumer<C_4675_, C_2064_> p_226159_, C_212974_ p_226160_, int p_226161_, C_4675_ p_226162_, C_2366_ arg5)
public int
a(ayw arg0)
getTreeHeight(RandomSource arg0)
method_26993(class_5819 arg0)
m_ensuiaqn(C_rlomrsco arg0)
getHeight(Random random)
getHeight(RandomGenerator random)
m_226153_(C_212974_ arg0)
private static boolean
c(ddc arg0, jd 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)
canGenerate(TestableWorld world, BlockPos pos)
m_70295_(C_1604_ p_70296_, C_4675_ p_70297_)
protected static void
a(ddc arg0, BiConsumer<jd, dtc> arg1, ayw arg2, jd arg3, efe arg4)
setDirtAt(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos arg3, TreeConfiguration arg4)
method_27400(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338 arg3, class_4643 arg4)
m_unyewomb(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_hynzadkk arg3, C_zthydktd arg4)
setToDirt(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config)
setToDirt(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator random, BlockPos pos, TreeFeatureConfig config)
m_226169_(C_1604_ p_226170_, BiConsumer<C_4675_, C_2064_> p_226171_, C_212974_ p_226172_, C_4675_ p_226173_, C_2366_ p_226174_)
protected boolean
b(ddc arg0, BiConsumer<jd, dtc> arg1, ayw arg2, jd arg3, efe arg4)
placeLog(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos arg3, TreeConfiguration arg4)
method_35375(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338 arg3, class_4643 arg4)
m_xnycxfif(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_hynzadkk arg3, C_zthydktd arg4)
getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config)
placeTrunkBlock(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator random, BlockPos pos, TreeFeatureConfig config)
m_226187_(C_1604_ p_226189_, BiConsumer<C_4675_, C_2064_> p_226190_, C_212974_ p_226191_, C_4675_ p_226192_, C_2366_ arg4)
protected boolean
a(ddc arg0, BiConsumer<jd, dtc> arg1, ayw arg2, jd arg3, efe arg4, Function<dtc, dtc> arg5)
placeLog(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos arg3, TreeConfiguration arg4, Function<BlockState, BlockState> arg5)
method_27402(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338 arg3, class_4643 arg4, Function<class_2680, class_2680> arg5)
m_zpwlfpnd(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco 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> arg5)
placeTrunkBlock(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> stateProcessor)
m_226175_(C_1604_ p_226177_, BiConsumer<C_4675_, C_2064_> p_226178_, C_212974_ p_226179_, C_4675_ p_226180_, C_2366_ p_226181_, Function<C_2064_, C_2064_> arg5)
protected void
a(ddc arg0, BiConsumer<jd, dtc> arg1, ayw arg2, jd$a arg3, efe arg4)
placeLogIfFree(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos$MutableBlockPos arg3, TreeConfiguration arg4)
method_27401(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338$class_2339 arg3, class_4643 arg4)
m_ozvnumml(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_hynzadkk$C_egqitdjk arg3, C_zthydktd arg4)
trySetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos$Mutable pos, TreeFeatureConfig config)
trySetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator random, BlockPos$Mutable pos, TreeFeatureConfig config)
m_226163_(C_1604_ p_226165_, BiConsumer<C_4675_, C_2064_> p_226166_, C_212974_ p_226167_, C_4675_$C_4681_ p_226168_, C_2366_ arg4)
protected boolean
a(ddc arg0, jd arg1)
validTreePos(LevelSimulatedReader arg0, BlockPos arg1)
method_43196(class_3746 arg0, class_2338 arg1)
m_pyctuojn(C_agsukcmb arg0, C_hynzadkk arg1)
canReplace(TestableWorld world, BlockPos pos)
canReplace(TestableWorld world, BlockPos pos)
m_213554_(C_1604_ p_226156_, C_4675_ arg1)
public boolean
b(ddc arg0, jd arg1)
isFree(LevelSimulatedReader arg0, BlockPos arg1)
method_43198(class_3746 arg0, class_2338 arg1)
m_vzauktak(C_agsukcmb arg0, C_hynzadkk arg1)
canReplaceOrIsLog(TestableWorld world, BlockPos pos)
isReplaceableOrLog(TestableWorld world, BlockPos pos)
m_226184_(C_1604_ p_226186_, C_4675_ arg1)