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

public abstract class TrunkPlacer

dpl
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(cmo arg0, BiConsumer<gt, dbq> arg1, apo arg2, int arg3, gt arg4, dnd 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 world, BiConsumer<BlockPos, BlockState> replacer, Random 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(apo arg0)
getTreeHeight(RandomSource arg0)
method_26993(class_5819 arg0)
getHeight(Random random)
m_226153_(C_212974_ arg0)
private static boolean
c(cmo arg0, gt 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(cmo arg0, BiConsumer<gt, dbq> arg1, apo arg2, gt arg3, dnd 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)
setToDirt(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random 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(cmo arg0, BiConsumer<gt, dbq> arg1, apo arg2, gt arg3, dnd 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)
getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random 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(cmo arg0, BiConsumer<gt, dbq> arg1, apo arg2, gt arg3, dnd arg4, Function<dbq, dbq> 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)
getAndSetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config, Function<BlockState, BlockState> arg5)
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(cmo arg0, BiConsumer<gt, dbq> arg1, apo arg2, gt$a arg3, dnd 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)
trySetState(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random 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(cmo arg0, gt arg1)
validTreePos(LevelSimulatedReader arg0, BlockPos arg1)
method_43196(class_3746 arg0, class_2338 arg1)
canReplace(TestableWorld world, BlockPos pos)
m_213554_(C_1604_ p_226156_, C_4675_ arg1)
public boolean
b(cmo arg0, gt arg1)
isFree(LevelSimulatedReader arg0, BlockPos arg1)
method_43198(class_3746 arg0, class_2338 arg1)
canReplaceOrIsLog(TestableWorld world, BlockPos pos)
m_226184_(C_1604_ p_226186_, C_4675_ arg1)