Class MegaJungleFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.MegaJungleFoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
FoliagePlacer.FoliageAttachment, FoliagePlacer.FoliageSetter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<MegaJungleFoliagePlacer> protected final intFields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionMegaJungleFoliagePlacer(IntProvider pRadius, IntProvider pOffset, int pHeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(LevelSimulatedReader p_225657_, FoliagePlacer.FoliageSetter p_273447_, RandomSource p_225659_, TreeConfiguration p_225660_, int p_225661_, FoliagePlacer.FoliageAttachment p_225662_, int p_225663_, int p_225664_, int p_225665_) intfoliageHeight(RandomSource p_225653_, int p_225654_, TreeConfiguration p_225655_) protected booleanshouldSkipLocation(RandomSource p_225646_, int p_225647_, int p_225648_, int p_225649_, int p_225650_, boolean p_225651_) Skips certain positions based on the provided shape, such as rounding corners randomly.protected FoliagePlacerType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, placeLeavesRowWithHangingLeavesBelow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
height
protected final int height
-
-
Constructor Details
-
MegaJungleFoliagePlacer
-
-
Method Details
-
type
- Specified by:
typein classFoliagePlacer
-
createFoliage
protected void createFoliage(LevelSimulatedReader p_225657_, FoliagePlacer.FoliageSetter p_273447_, RandomSource p_225659_, TreeConfiguration p_225660_, int p_225661_, FoliagePlacer.FoliageAttachment p_225662_, int p_225663_, int p_225664_, int p_225665_) - Specified by:
createFoliagein classFoliagePlacer
-
foliageHeight
- Specified by:
foliageHeightin classFoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(RandomSource p_225646_, int p_225647_, int p_225648_, int p_225649_, int p_225650_, boolean p_225651_) 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].- Specified by:
shouldSkipLocationin classFoliagePlacer
-