net.minecraft.world.level.levelgen.feature.foliageplacers

public abstract class FoliagePlacer

dbp
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.class_4647
net.minecraft.world.gen.foliage.FoliagePlacer
net.minecraft.src.C_2379_
net.minecraft.world.level.levelgen.feature.foliageplacers.WorldGenFoilagePlacer

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<FoliagePlacer>
d
CODEC
field_24931
TYPE_CODEC
f_68519_
protected final IntProvider
e
radius
field_21296
radius
f_68520_
protected final IntProvider
f
offset
field_23753
offset
f_68521_

Constructor summary

ModifierConstructor
public (IntProvider radius, IntProvider offset)

Method summary

Modifier and TypeMethod
protected static <P extends FoliagePlacer> com.mojang.datafixers.Products$P2<com.mojang.serialization.codecs.RecordCodecBuilder$Mu<P>, IntProvider, IntProvider>
b(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
foliagePlacerParts(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
method_30411(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
fillFoliagePlacerFields(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
m_68573_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> p_68574_)
protected abstract FoliagePlacerType<?>
a()
type()
method_28843()
getType()
m_5897_()
public void
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, dba arg3, int arg4, dbp$a arg5, int arg6, int arg7)
createFoliage(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, TreeConfiguration arg3, int arg4, FoliagePlacer$FoliageAttachment arg5, int arg6, int arg7)
method_27385(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_4643 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7)
generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, int foliageHeight, int radius)
m_161413_(C_1604_ p_161415_, BiConsumer<C_4675_, C_2064_> p_161416_, Random p_161417_, C_2366_ p_161418_, int p_161419_, C_2379_$C_2380_ p_161420_, int p_161421_, int arg7)
protected abstract void
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, dba arg3, int arg4, dbp$a arg5, int arg6, int arg7, int arg8)
createFoliage(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, TreeConfiguration arg3, int arg4, FoliagePlacer$FoliageAttachment arg5, int arg6, int arg7, int arg8)
method_23448(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_4643 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7, int arg8)
generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, int foliageHeight, int radius, int offset)
m_142539_(C_1604_ p_161423_, BiConsumer<C_4675_, C_2064_> p_161424_, Random p_161425_, C_2366_ p_161426_, int p_161427_, C_2379_$C_2380_ p_161428_, int p_161429_, int p_161430_, int arg8)
public abstract int
a(Random arg0, int arg1, dba arg2)
foliageHeight(Random arg0, int arg1, TreeConfiguration arg2)
method_26989(Random arg0, int arg1, class_4643 arg2)
getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config)
m_5969_(Random p_68569_, int p_68570_, C_2366_ arg2)
public int
a(Random arg0, int arg1)
foliageRadius(Random arg0, int arg1)
method_23452(Random arg0, int arg1)
getRandomRadius(Random random, int baseHeight)
m_5937_(Random p_68561_, int arg1)
private int
a(Random arg0)
offset(Random arg0)
method_27386(Random arg0)
getRandomOffset(Random random)
m_68558_(Random arg0)
protected abstract boolean
a(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
shouldSkipLocation(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
method_23451(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
isInvalidForLeaves(Random random, int dx, int y, int dz, int radius, boolean giantTrunk)
m_7394_(Random p_68563_, int p_68564_, int p_68565_, int p_68566_, int p_68567_, boolean arg5)
protected boolean
b(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
shouldSkipLocationSigned(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
method_27387(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
isPositionInvalid(Random random, int dx, int y, int dz, int radius, boolean giantTrunk)
m_7395_(Random p_68576_, int p_68577_, int p_68578_, int p_68579_, int p_68580_, boolean arg5)
protected void
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, dba arg3, gj arg4, int arg5, int arg6, boolean arg7)
placeLeavesRow(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, TreeConfiguration arg3, BlockPos arg4, int arg5, int arg6, boolean arg7)
method_23449(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_4643 arg3, class_2338 arg4, int arg5, int arg6, boolean arg7)
generateSquare(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk)
m_161437_(C_1604_ p_161439_, BiConsumer<C_4675_, C_2064_> p_161440_, Random p_161441_, C_2366_ p_161442_, C_4675_ p_161443_, int p_161444_, int p_161445_, boolean arg7)
protected static void
a(cbb arg0, BiConsumer<gj, cov> arg1, Random arg2, dba arg3, gj arg4)
tryPlaceLeaf(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, Random arg2, TreeConfiguration arg3, BlockPos arg4)
method_34359(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, Random arg2, class_4643 arg3, class_2338 arg4)
placeFoliageBlock(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos pos)
m_161431_(C_1604_ p_161432_, BiConsumer<C_4675_, C_2064_> p_161433_, Random p_161434_, C_2366_ p_161435_, C_4675_ p_161436_)