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

public abstract class TrunkPlacer

emg
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.minecraft.class_5141
net.minecraft.world.gen.trunk.TrunkPlacer
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
private static final int
a
MAX_BASE_HEIGHT
field_31528
MAX_BASE_HEIGHT
private static final int
b
MAX_RAND
field_31529
MAX_RANDOM_HEIGHT
public static final int
d
MAX_HEIGHT
field_31530
field_31530
protected final int
e
baseHeight
field_23760
baseHeight
protected final int
f
heightRandA
field_23761
firstRandomHeight
protected final int
g
heightRandB
field_23762
secondRandomHeight

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)
protected abstract TrunkPlacerType<?>
a()
type()
method_28903()
getType()
public abstract List<FoliagePlacer$FoliageAttachment>
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, int arg3, jh arg4, ejw 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)
public int
a(bam arg0)
getTreeHeight(RandomSource arg0)
method_26993(class_5819 arg0)
getHeight(Random random)
private static boolean
c(dho arg0, jh arg1)
isDirt(LevelSimulatedReader arg0, BlockPos arg1)
method_27403(class_3746 arg0, class_2338 arg1)
canGenerate(TestableWorld world, BlockPos pos)
protected static void
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, jh arg3, ejw 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)
protected boolean
b(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, jh arg3, ejw 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)
protected boolean
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, jh arg3, ejw arg4, Function<dxv, dxv> 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)
protected void
a(dho arg0, BiConsumer<jh, dxv> arg1, bam arg2, jh$a arg3, ejw 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)
protected boolean
a(dho arg0, jh arg1)
validTreePos(LevelSimulatedReader arg0, BlockPos arg1)
method_43196(class_3746 arg0, class_2338 arg1)
canReplace(TestableWorld world, BlockPos pos)
public boolean
b(dho arg0, jh arg1)
isFree(LevelSimulatedReader arg0, BlockPos arg1)
method_43198(class_3746 arg0, class_2338 arg1)
canReplaceOrIsLog(TestableWorld world, BlockPos pos)