Class MapleFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.frozenblock.wilderwild.worldgen.impl.foliage.MapleFoliagePlacer
public class MapleFoliagePlacer
extends net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter -
Field Summary
FieldsFields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionMapleFoliagePlacer(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider offset, net.minecraft.util.valueproviders.IntProvider foliageHeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int trunkHeight, @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment node, int foliageHeight, int radius, int offset) intfoliageHeight(net.minecraft.util.RandomSource random, int trunkHeight, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) protected voidplaceLeavesInCircle(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, net.minecraft.core.BlockPos centerPos, int providedRadius, int y, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight) protected booleanshouldSkipLocation(net.minecraft.util.RandomSource random, int dx, int y, int dz, int radius, boolean giantTrunk) protected booleanshouldSkipMapleLocation(double xDistance, double zDistance, double radius, int totalHeight, int currentHeight, int trunkHeight) protected booleanshouldSkipMapleLocationSigned(double dx, double dz, double radius, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight) protected @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
-
Constructor Details
-
MapleFoliagePlacer
public MapleFoliagePlacer(net.minecraft.util.valueproviders.IntProvider radius, net.minecraft.util.valueproviders.IntProvider offset, net.minecraft.util.valueproviders.IntProvider foliageHeight)
-
-
Method Details
-
type
@NotNull protected @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacerType<?> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
createFoliage
protected void createFoliage(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, int trunkHeight, @NotNull net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment node, int foliageHeight, int radius, int offset) - Specified by:
createFoliagein classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
placeLeavesInCircle
protected void placeLeavesInCircle(net.minecraft.world.level.LevelSimulatedReader world, net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageSetter placer, @NotNull @NotNull net.minecraft.util.RandomSource random, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config, net.minecraft.core.BlockPos centerPos, int providedRadius, int y, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight) -
shouldSkipMapleLocationSigned
protected boolean shouldSkipMapleLocationSigned(double dx, double dz, double radius, boolean giantTrunk, int totalHeight, int currentHeight, int trunkHeight) -
shouldSkipMapleLocation
protected boolean shouldSkipMapleLocation(double xDistance, double zDistance, double radius, int totalHeight, int currentHeight, int trunkHeight) -
foliageHeight
public int foliageHeight(net.minecraft.util.RandomSource random, int trunkHeight, net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) - Specified by:
foliageHeightin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(net.minecraft.util.RandomSource random, int dx, int y, int dz, int radius, boolean giantTrunk) - Specified by:
shouldSkipLocationin classnet.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
-