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

public abstract class FoliagePlacer

ekm
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.class_4647
net.minecraft.world.gen.foliage.FoliagePlacer
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
protected final IntProvider
e
radius
field_21296
radius
protected final IntProvider
f
offset
field_23753
offset

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)
protected abstract FoliagePlacerType<?>
a()
type()
method_28843()
getType()
public void
a(dho arg0, ekm$b arg1, bam arg2, ejw arg3, int arg4, ekm$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)
protected abstract void
a(dho arg0, ekm$b arg1, bam arg2, ejw arg3, int arg4, ekm$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)
public abstract int
a(bam arg0, int arg1, ejw 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)
public int
a(bam arg0, int arg1)
foliageRadius(RandomSource arg0, int arg1)
method_23452(class_5819 arg0, int arg1)
getRandomRadius(Random random, int baseHeight)
private int
a(bam arg0)
offset(RandomSource arg0)
method_27386(class_5819 arg0)
getRandomOffset(Random random)
protected abstract boolean
a(bam 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)
protected boolean
b(bam 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)
protected void
a(dho arg0, ekm$b arg1, bam arg2, ejw arg3, jh 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)
protected final void
a(dho arg0, ekm$b arg1, bam arg2, ejw arg3, jh 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)
private static boolean
a(dho arg0, ekm$b arg1, bam arg2, ejw arg3, float arg4, jh arg5, jh$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)
protected static boolean
a(dho arg0, ekm$b arg1, bam arg2, ejw arg3, jh 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)