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

public abstract class FoliagePlacer

efu
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> instance)
fillFoliagePlacerFields(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> instance)
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(ddc arg0, efu$b arg1, ayw arg2, efe arg3, int arg4, efu$a arg5, int arg6, int arg7)
createFoliage(LevelSimulatedReader arg0, FoliagePlacer$FoliageSetter arg1, RandomSource arg2, TreeConfiguration arg3, int arg4, FoliagePlacer$FoliageAttachment arg5, int arg6, int arg7)
method_27385(class_3746 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_4643 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7)
m_fylecjal(C_agsukcmb arg0, C_iwuefjcy$C_pwcqvmho arg1, C_rlomrsco arg2, C_zthydktd arg3, int arg4, C_iwuefjcy$C_uditupge arg5, int arg6, int arg7)
generate(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, int foliageHeight, int radius)
createFoliage(TestableWorld world, FoliagePlacer$Placer placer, RandomGenerator random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode node, int foliageHeight, int radius)
m_271927_(C_1604_ p_273018_, C_2379_$C_271048_ p_273425_, C_212974_ p_273138_, C_2366_ p_273282_, int p_272944_, C_2379_$C_2380_ p_272930_, int p_272727_, int arg7)
protected abstract void
a(ddc arg0, efu$b arg1, ayw arg2, efe arg3, int arg4, efu$a arg5, int arg6, int arg7, int arg8)
createFoliage(LevelSimulatedReader arg0, FoliagePlacer$FoliageSetter arg1, RandomSource arg2, TreeConfiguration arg3, int arg4, FoliagePlacer$FoliageAttachment arg5, int arg6, int arg7, int arg8)
method_23448(class_3746 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_4643 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7, int arg8)
m_nquaqgua(C_agsukcmb arg0, C_iwuefjcy$C_pwcqvmho arg1, C_rlomrsco arg2, C_zthydktd arg3, int arg4, C_iwuefjcy$C_uditupge arg5, int arg6, int arg7, int arg8)
generate(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, int foliageHeight, int radius, int offset)
createFoliage(TestableWorld world, FoliagePlacer$Placer placer, RandomGenerator random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode node, int foliageHeight, int radius, int offset)
m_213633_(C_1604_ p_273598_, C_2379_$C_271048_ p_225615_, C_212974_ p_225616_, C_2366_ p_225617_, int p_225618_, C_2379_$C_2380_ p_225619_, int p_225620_, int p_225621_, int arg8)
public abstract int
a(ayw arg0, int arg1, efe 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 random, int trunkHeight, TreeFeatureConfig config)
m_214116_(C_212974_ p_225602_, int p_225603_, C_2366_ arg2)
public int
a(ayw 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 random, int baseHeight)
m_214117_(C_212974_ p_225594_, int arg1)
private int
a(ayw arg0)
offset(RandomSource arg0)
method_27386(class_5819 arg0)
m_gnnnomut(C_rlomrsco arg0)
getRandomOffset(Random random)
getRandomOffset(RandomGenerator random)
m_225591_(C_212974_ arg0)
protected abstract boolean
a(ayw 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 random, 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(ayw 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 random, 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(ddc arg0, efu$b arg1, ayw arg2, efe arg3, jd arg4, int arg5, int arg6, boolean arg7)
placeLeavesRow(LevelSimulatedReader arg0, FoliagePlacer$FoliageSetter arg1, RandomSource arg2, TreeConfiguration arg3, BlockPos arg4, int arg5, int arg6, boolean arg7)
method_23449(class_3746 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_4643 arg3, class_2338 arg4, int arg5, int arg6, boolean arg7)
m_jhbkooww(C_agsukcmb arg0, C_iwuefjcy$C_pwcqvmho arg1, C_rlomrsco arg2, C_zthydktd arg3, C_hynzadkk arg4, int arg5, int arg6, boolean arg7)
generateSquare(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk)
generateSquare(TestableWorld world, FoliagePlacer$Placer placer, RandomGenerator random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk)
m_225628_(C_1604_ p_272772_, C_2379_$C_271048_ p_225631_, C_212974_ p_225632_, C_2366_ p_225633_, C_4675_ p_225634_, int p_225635_, int p_225636_, boolean arg7)
protected final void
a(ddc arg0, efu$b arg1, ayw arg2, efe arg3, jd arg4, int arg5, int arg6, boolean arg7, float arg8, float arg9)
placeLeavesRowWithHangingLeavesBelow(LevelSimulatedReader arg0, FoliagePlacer$FoliageSetter arg1, RandomSource arg2, TreeConfiguration arg3, BlockPos arg4, int arg5, int arg6, boolean arg7, float arg8, float arg9)
method_49247(class_3746 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_4643 arg3, class_2338 arg4, int arg5, int arg6, boolean arg7, float arg8, float arg9)
m_sydehvtv(C_agsukcmb arg0, C_iwuefjcy$C_pwcqvmho arg1, C_rlomrsco arg2, C_zthydktd arg3, C_hynzadkk arg4, int arg5, int arg6, boolean arg7, float arg8, float arg9)
generateSquareWithHangingLeaves(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk, float hangingLeavesChance, float hangingLeavesExtensionChance)
generateSquareWithHangingChances(TestableWorld world, FoliagePlacer$Placer placer, RandomGenerator random, TreeFeatureConfig config, BlockPos pos, int radius, int y, boolean giantTrunk, float hangingChance, float hangingExtensionChance)
m_272160_(C_1604_ p_273225_, C_2379_$C_271048_ p_272629_, C_212974_ p_272885_, C_2366_ p_273412_, C_4675_ p_272712_, int p_272656_, int p_272689_, boolean p_273464_, float p_273068_, float arg9)
private static boolean
a(ddc arg0, efu$b arg1, ayw arg2, efe arg3, float arg4, jd arg5, jd$a arg6)
tryPlaceExtension(LevelSimulatedReader arg0, FoliagePlacer$FoliageSetter arg1, RandomSource arg2, TreeConfiguration arg3, float arg4, BlockPos arg5, BlockPos$MutableBlockPos arg6)
method_49884(class_3746 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_4643 arg3, float arg4, class_2338 arg5, class_2338$class_2339 arg6)
m_njrdnobv(C_agsukcmb arg0, C_iwuefjcy$C_pwcqvmho arg1, C_rlomrsco arg2, C_zthydktd arg3, float arg4, C_hynzadkk arg5, C_hynzadkk$C_egqitdjk arg6)
placeFoliageBlock(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, float chance, BlockPos origin, BlockPos$Mutable pos)
placeFoliage(TestableWorld world, FoliagePlacer$Placer placer, RandomGenerator random, TreeFeatureConfig config, float chance, BlockPos pos, BlockPos$Mutable mutablePos)
m_277091_(C_1604_ p_277577_, C_2379_$C_271048_ p_277449_, C_212974_ p_277966_, C_2366_ p_277897_, float p_277979_, C_4675_ p_277833_, C_4675_$C_4681_ p_277567_)
protected static boolean
a(ddc arg0, efu$b arg1, ayw arg2, efe arg3, jd arg4)
tryPlaceLeaf(LevelSimulatedReader arg0, FoliagePlacer$FoliageSetter arg1, RandomSource arg2, TreeConfiguration arg3, BlockPos arg4)
method_34359(class_3746 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_4643 arg3, class_2338 arg4)
m_cwekonud(C_agsukcmb arg0, C_iwuefjcy$C_pwcqvmho arg1, C_rlomrsco arg2, C_zthydktd arg3, C_hynzadkk arg4)
placeFoliageBlock(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos pos)
placeFoliageBlock(TestableWorld world, FoliagePlacer$Placer placer, RandomGenerator random, TreeFeatureConfig config, BlockPos pos)
m_272253_(C_1604_ p_273596_, C_2379_$C_271048_ p_273054_, C_212974_ p_272977_, C_2366_ p_273040_, C_4675_ p_273406_)