Class FancyFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.BlobFoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.FancyFoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class FoliagePlacer
FoliagePlacer.FoliageAttachment, FoliagePlacer.FoliageSetter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FancyFoliagePlacer> Fields inherited from class BlobFoliagePlacer
heightFields inherited from class FoliagePlacer
offset, radius -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration config, int treeHeight, FoliagePlacer.FoliageAttachment foliageAttachment, int foliageHeight, int leafRadius, int offset) protected booleanshouldSkipLocation(RandomSource random, int dx, int y, int dz, int currentRadius, boolean doubleTrunk) Skips certain positions based on the provided shape, such as rounding corners randomly.protected FoliagePlacerType<?> type()Methods inherited from class BlobFoliagePlacer
blobParts, foliageHeightMethods inherited from class FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
-
Constructor Details
-
FancyFoliagePlacer
-
-
Method Details
-
type
- Overrides:
typein classBlobFoliagePlacer
-
createFoliage
protected void createFoliage(LevelSimulatedReader level, FoliagePlacer.FoliageSetter foliageSetter, RandomSource random, TreeConfiguration config, int treeHeight, FoliagePlacer.FoliageAttachment foliageAttachment, int foliageHeight, int leafRadius, int offset) - Overrides:
createFoliagein classBlobFoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(RandomSource random, int dx, int y, int dz, int currentRadius, boolean doubleTrunk) Description copied from class:FoliagePlacerSkips certain positions based on the provided shape, such as rounding corners randomly. The coordinates are passed in as absolute value, and should be within [0,range].- Overrides:
shouldSkipLocationin classBlobFoliagePlacer
-