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

public abstract class FoliagePlacer

eeq
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> instance)
m_68573_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> p_68574_)
protected abstract FoliagePlacerType<?>
a()
type()
method_28843()
getType()
m_5897_()
public void
a(dcg arg0, eeq$b arg1, azh arg2, eea arg3, int arg4, eeq$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)
generate(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, 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(dcg arg0, eeq$b arg1, azh arg2, eea arg3, int arg4, eeq$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)
generate(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, 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(azh arg0, int arg1, eea arg2)
foliageHeight(RandomSource arg0, int arg1, TreeConfiguration arg2)
method_26989(class_5819 arg0, int arg1, class_4643 arg2)
getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config)
m_214116_(C_212974_ p_225602_, int p_225603_, C_2366_ arg2)
public int
a(azh arg0, int arg1)
foliageRadius(RandomSource arg0, int arg1)
method_23452(class_5819 arg0, int arg1)
getRandomRadius(Random random, int baseHeight)
m_214117_(C_212974_ p_225594_, int arg1)
private int
a(azh arg0)
offset(RandomSource arg0)
method_27386(class_5819 arg0)
getRandomOffset(Random random)
m_225591_(C_212974_ arg0)
protected abstract boolean
a(azh 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)
isInvalidForLeaves(Random 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(azh 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)
isPositionInvalid(Random 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(dcg arg0, eeq$b arg1, azh arg2, eea arg3, iz 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)
generateSquare(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random 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(dcg arg0, eeq$b arg1, azh arg2, eea arg3, iz 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)
generateSquareWithHangingLeaves(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, BlockPos centerPos, int radius, int y, boolean giantTrunk, float hangingLeavesChance, float hangingLeavesExtensionChance)
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(dcg arg0, eeq$b arg1, azh arg2, eea arg3, float arg4, iz arg5, iz$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)
placeFoliageBlock(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random random, TreeFeatureConfig config, float chance, BlockPos origin, BlockPos$Mutable pos)
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(dcg arg0, eeq$b arg1, azh arg2, eea arg3, iz 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)
placeFoliageBlock(TestableWorld world, FoliagePlacer$BlockPlacer placer, Random 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_)