net.minecraft.world.gen.foliage

public class CherryFoliagePlacer

extends FoliagePlacer

net.minecraft.world.level.levelgen.feature.foliageplacers.CherryFoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.CherryFoliagePlacer
net.minecraft.class_8178
net.minecraft.world.gen.foliage.CherryFoliagePlacer

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CherryFoliagePlacer>
CODEC
CODEC
field_42841
CODEC
private final IntProvider
height
height
field_42842
height
private final float
wideBottomLayerHoleChance
wideBottomLayerHoleChance
field_42843
wideBottomLayerHoleChance
private final float
cornerHoleChance
cornerHoleChance
field_42844
cornerHoleChance
private final float
hangingLeavesChance
hangingLeavesChance
field_42845
hangingLeavesChance
private final float
hangingLeavesExtensionChance
hangingLeavesExtensionChance
field_42846
hangingLeavesExtensionChance

Constructor summary

ModifierConstructor
public (IntProvider radius, IntProvider offset, IntProvider height, float wideBottomLayerHoleChance, float cornerHoleChance, float hangingLeavesChance, float hangingLeavesExtensionChance)

Method summary

Modifier and TypeMethod
protected FoliagePlacerType<?>
type()
type()
method_28843()
getType()
protected void
createFoliage(WorldGenLevel level, FoliagePlacer$FoliageSetter foliageSetter, RandomSource random, TreeFeature tree, int treeHeight, FoliagePlacer$FoliageAttachment foliageAttachment, int foliageHeight, int leafRadius, int offset)
createFoliage(WorldGenLevel level, FoliagePlacer$FoliageSetter foliageSetter, RandomSource random, TreeFeature tree, int treeHeight, FoliagePlacer$FoliageAttachment foliageAttachment, int foliageHeight, int leafRadius, int offset)
method_23448(class_5281 arg0, class_4647$class_8179 arg1, class_5819 arg2, class_2944 arg3, int arg4, class_4647$class_5208 arg5, int arg6, int arg7, int arg8)
generate(StructureWorldAccess arg0, FoliagePlacer$BlockPlacer arg1, Random arg2, TreeFeature arg3, int arg4, FoliagePlacer$TreeNode arg5, int arg6, int arg7, int arg8)
public int
foliageHeight(RandomSource random, int treeHeight, TreeFeature tree)
foliageHeight(RandomSource random, int treeHeight, TreeFeature tree)
method_26989(class_5819 arg0, int arg1, class_2944 arg2)
getRandomHeight(Random arg0, int arg1, TreeFeature arg2)
protected boolean
shouldSkipLocation(RandomSource random, int dx, int y, int dz, int currentRadius, boolean doubleTrunk)
shouldSkipLocation(RandomSource random, int dx, int y, int dz, int currentRadius, boolean doubleTrunk)
method_23451(class_5819 arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)
isInvalidForLeaves(Random arg0, int arg1, int arg2, int arg3, int arg4, boolean arg5)