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

public abstract class FoliagePlacer

cnl
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.class_4647
net.minecraft.world.gen.foliage.FoliagePlacer
net.minecraft.world.gen.foliageplacer.FoliagePlacer
net.minecraft.server.v1_16_R3.WorldGenFoilagePlacer

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<FoliagePlacer>
d
CODEC
field_24931
TYPE_CODEC
field_236749_d_
protected final UniformInt
e
radius
field_21296
radius
field_227381_a_
protected final UniformInt
f
offset
field_23753
offset
field_236750_g_

Constructor summary

ModifierConstructor
public (UniformInt radius, UniformInt offset)

Method summary

Modifier and TypeMethod
protected static <P extends FoliagePlacer> com.mojang.datafixers.Products$P2<com.mojang.serialization.codecs.RecordCodecBuilder$Mu<P>, UniformInt, UniformInt>
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)
func_242830_b(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
protected abstract FoliagePlacerType<?>
a()
type()
method_28843()
getType()
func_230371_a_()
public void
a(bsb arg0, Random arg1, cmz arg2, int arg3, cnl$b arg4, int arg5, int arg6, Set<fx> arg7, cra arg8)
createFoliage(LevelSimulatedRW arg0, Random arg1, TreeConfiguration arg2, int arg3, FoliagePlacer$FoliageAttachment arg4, int arg5, int arg6, Set<BlockPos> arg7, BoundingBox arg8)
method_27385(class_3747 arg0, Random arg1, class_4643 arg2, int arg3, class_4647$class_5208 arg4, int arg5, int arg6, Set<class_2338> arg7, class_3341 arg8)
generate(ModifiableTestableWorld world, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, int foliageHeight, int radius, Set<BlockPos> leaves, BlockBox box)
func_236752_a_(IWorldGenerationReader arg0, Random arg1, BaseTreeFeatureConfig arg2, int arg3, FoliagePlacer$Foliage arg4, int arg5, int arg6, Set<BlockPos> arg7, MutableBoundingBox arg8)
protected abstract void
a(bsb arg0, Random arg1, cmz arg2, int arg3, cnl$b arg4, int arg5, int arg6, Set<fx> arg7, int arg8, cra arg9)
createFoliage(LevelSimulatedRW arg0, Random arg1, TreeConfiguration arg2, int arg3, FoliagePlacer$FoliageAttachment arg4, int arg5, int arg6, Set<BlockPos> arg7, int arg8, BoundingBox arg9)
method_23448(class_3747 arg0, Random arg1, class_4643 arg2, int arg3, class_4647$class_5208 arg4, int arg5, int arg6, Set<class_2338> arg7, int arg8, class_3341 arg9)
generate(ModifiableTestableWorld world, Random random, TreeFeatureConfig config, int trunkHeight, FoliagePlacer$TreeNode treeNode, int foliageHeight, int radius, Set<BlockPos> leaves, int offset, BlockBox box)
func_230372_a_(IWorldGenerationReader arg0, Random arg1, BaseTreeFeatureConfig arg2, int arg3, FoliagePlacer$Foliage arg4, int arg5, int arg6, Set<BlockPos> arg7, int arg8, MutableBoundingBox arg9)
public abstract int
a(Random arg0, int arg1, cmz arg2)
foliageHeight(Random arg0, int arg1, TreeConfiguration arg2)
method_26989(Random arg0, int arg1, class_4643 arg2)
getRandomHeight(Random random, int trunkHeight, TreeFeatureConfig config)
func_230374_a_(Random arg0, int arg1, BaseTreeFeatureConfig arg2)
public int
a(Random arg0, int arg1)
foliageRadius(Random arg0, int arg1)
method_23452(Random arg0, int arg1)
getRandomRadius(Random random, int baseHeight)
func_230376_a_(Random arg0, int arg1)
private int
a(Random arg0)
offset(Random arg0)
method_27386(Random arg0)
getRandomOffset(Random random)
func_236755_a_(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)
func_230373_a_(Random arg0, int arg1, int arg2, int arg3, int arg4, 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)
func_230375_b_(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
protected void
a(bsb arg0, Random arg1, cmz arg2, fx arg3, int arg4, Set<fx> arg5, int arg6, boolean arg7, cra arg8)
placeLeavesRow(LevelSimulatedRW arg0, Random arg1, TreeConfiguration arg2, BlockPos arg3, int arg4, Set<BlockPos> arg5, int arg6, boolean arg7, BoundingBox arg8)
method_23449(class_3747 arg0, Random arg1, class_4643 arg2, class_2338 arg3, int arg4, Set<class_2338> arg5, int arg6, boolean arg7, class_3341 arg8)
generateSquare(ModifiableTestableWorld world, Random random, TreeFeatureConfig config, BlockPos pos, int radius, Set<BlockPos> leaves, int y, boolean giantTrunk, BlockBox box)
func_236753_a_(IWorldGenerationReader arg0, Random arg1, BaseTreeFeatureConfig arg2, BlockPos arg3, int arg4, Set<BlockPos> arg5, int arg6, boolean arg7, MutableBoundingBox arg8)