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

public abstract class FoliagePlacer

dgl
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.class_4647
net.minecraft.unmapped.C_iwuefjcy
net.minecraft.world.gen.foliage.FoliagePlacer
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
f_zzosassw
TYPE_CODEC
TYPE_CODEC
f_68519_
protected final IntProvider
e
radius
field_21296
f_czfpnkai
radius
radius
f_68520_
protected final IntProvider
f
offset
field_23753
f_denqqplx
offset
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)
m_kfjixvcn(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
fillFoliagePlacerFields(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()
m_lnntehfe()
getType()
getType()
m_5897_()
public void
a(cgg arg0, BiConsumer<gt, cur> arg1, alu arg2, dfw arg3, int arg4, dgl$a arg5, int arg6, int arg7)
createFoliage(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, TreeConfiguration arg3, int arg4, FoliagePlacer$FoliageAttachment arg5, int arg6, int arg7)
method_27385(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_4643 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7)
m_gndkhscs(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_zthydktd arg3, int arg4, C_iwuefjcy$C_uditupge 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_gndkhscs(TestableWorld arg0, BiConsumer<BlockPos, BlockState> arg1, RandomGenerator arg2, TreeFeatureConfig arg3, int arg4, FoliagePlacer$TreeNode arg5, int arg6, int arg7)
m_225604_(C_1604_ p_225606_, BiConsumer<C_4675_, C_2064_> p_225607_, C_212974_ p_225608_, C_2366_ p_225609_, int p_225610_, C_2380_ p_225611_, int p_225612_, int arg7)
protected abstract void
a(cgg arg0, BiConsumer<gt, cur> arg1, alu arg2, dfw arg3, int arg4, dgl$a arg5, int arg6, int arg7, int arg8)
createFoliage(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource 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, class_5819 arg2, class_4643 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7, int arg8)
m_fdoszgvu(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_zthydktd arg3, int arg4, C_iwuefjcy$C_uditupge 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_fdoszgvu(TestableWorld arg0, BiConsumer<BlockPos, BlockState> arg1, RandomGenerator arg2, TreeFeatureConfig arg3, int arg4, FoliagePlacer$TreeNode arg5, int arg6, int arg7, int arg8)
m_213633_(C_1604_ p_225614_, BiConsumer<C_4675_, C_2064_> p_225615_, C_212974_ p_225616_, C_2366_ p_225617_, int p_225618_, C_2380_ p_225619_, int p_225620_, int p_225621_, int arg8)
public abstract int
a(alu arg0, int arg1, dfw arg2)
foliageHeight(RandomSource arg0, int arg1, TreeConfiguration arg2)
method_26989(class_5819 arg0, int arg1, class_4643 arg2)
m_hjzzwqgw(C_rlomrsco arg0, int arg1, C_zthydktd arg2)
getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config)
getRandomHeight(RandomGenerator arg0, int trunkHeight, TreeFeatureConfig config)
m_214116_(C_212974_ p_225602_, int p_225603_, C_2366_ arg2)
public int
a(alu arg0, int arg1)
foliageRadius(RandomSource arg0, int arg1)
method_23452(class_5819 arg0, int arg1)
m_lenjfbah(C_rlomrsco arg0, int arg1)
getRandomRadius(Random random, int baseHeight)
getRandomRadius(RandomGenerator arg0, int baseHeight)
m_214117_(C_212974_ p_225594_, int arg1)
private int
a(alu arg0)
offset(RandomSource arg0)
method_27386(class_5819 arg0)
m_gnnnomut(C_rlomrsco arg0)
getRandomOffset(Random random)
getRandomOffset(RandomGenerator arg0)
m_225591_(C_212974_ arg0)
protected abstract boolean
a(alu arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
shouldSkipLocation(RandomSource arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
method_23451(class_5819 arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
m_uuoemfyq(C_rlomrsco arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
isInvalidForLeaves(Random random, int dx, int y, int dz, int radius, boolean giantTrunk)
isInvalidForLeaves(RandomGenerator arg0, int dx, int y, int dz, int radius, boolean giantTrunk)
m_214203_(C_212974_ p_225596_, int p_225597_, int p_225598_, int p_225599_, int p_225600_, boolean arg5)
protected boolean
b(alu arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
shouldSkipLocationSigned(RandomSource arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
method_27387(class_5819 arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
m_alwthvdq(C_rlomrsco arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
isPositionInvalid(Random random, int dx, int y, int dz, int radius, boolean giantTrunk)
isPositionInvalid(RandomGenerator arg0, int dx, int y, int dz, int radius, boolean giantTrunk)
m_214202_(C_212974_ p_225640_, int p_225641_, int p_225642_, int p_225643_, int p_225644_, boolean arg5)
protected void
a(cgg arg0, BiConsumer<gt, cur> arg1, alu arg2, dfw arg3, gt arg4, int arg5, int arg6, boolean arg7)
placeLeavesRow(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, TreeConfiguration arg3, BlockPos arg4, int arg5, int arg6, boolean arg7)
method_23449(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_4643 arg3, class_2338 arg4, int arg5, int arg6, boolean arg7)
m_jhbkooww(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_zthydktd arg3, C_hynzadkk 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)
generateSquare(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator arg2, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk)
m_225628_(C_1604_ p_225630_, BiConsumer<C_4675_, C_2064_> p_225631_, C_212974_ p_225632_, C_2366_ p_225633_, C_4675_ p_225634_, int p_225635_, int p_225636_, boolean arg7)
protected static void
a(cgg arg0, BiConsumer<gt, cur> arg1, alu arg2, dfw arg3, gt arg4)
tryPlaceLeaf(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, TreeConfiguration arg3, BlockPos arg4)
method_34359(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_4643 arg3, class_2338 arg4)
m_cwekonud(C_agsukcmb arg0, BiConsumer<C_hynzadkk, C_txtbiemp> arg1, C_rlomrsco arg2, C_zthydktd arg3, C_hynzadkk arg4)
placeFoliageBlock(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, TreeFeatureConfig config, BlockPos pos)
placeFoliageBlock(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, RandomGenerator arg2, TreeFeatureConfig config, BlockPos pos)
m_225622_(C_1604_ p_225623_, BiConsumer<C_4675_, C_2064_> p_225624_, C_212974_ p_225625_, C_2366_ p_225626_, C_4675_ p_225627_)