Class RandomSpreadFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.RandomSpreadFoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
FoliagePlacer.FoliageAttachment
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomSpreadFoliagePlacer>
private final IntProvider
private final int
Fields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius
-
Constructor Summary
ConstructorDescriptionRandomSpreadFoliagePlacer
(IntProvider p_161506_, IntProvider p_161507_, IntProvider p_161508_, int p_161509_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createFoliage
(LevelSimulatedReader p_161512_, BiConsumer<BlockPos, BlockState> p_161513_, Random p_161514_, TreeConfiguration p_161515_, int p_161516_, FoliagePlacer.FoliageAttachment p_161517_, int p_161518_, int p_161519_, int p_161520_) int
foliageHeight
(Random p_161533_, int p_161534_, TreeConfiguration p_161535_) protected boolean
shouldSkipLocation
(Random p_161526_, int p_161527_, int p_161528_, int p_161529_, int p_161530_, boolean p_161531_) protected FoliagePlacerType<?>
type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
foliageHeight
-
leafPlacementAttempts
private final int leafPlacementAttempts
-
-
Constructor Details
-
RandomSpreadFoliagePlacer
public RandomSpreadFoliagePlacer(IntProvider p_161506_, IntProvider p_161507_, IntProvider p_161508_, int p_161509_)
-
-
Method Details
-
type
- Specified by:
type
in classFoliagePlacer
-
createFoliage
protected void createFoliage(LevelSimulatedReader p_161512_, BiConsumer<BlockPos, BlockState> p_161513_, Random p_161514_, TreeConfiguration p_161515_, int p_161516_, FoliagePlacer.FoliageAttachment p_161517_, int p_161518_, int p_161519_, int p_161520_) - Specified by:
createFoliage
in classFoliagePlacer
-
foliageHeight
- Specified by:
foliageHeight
in classFoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(Random p_161526_, int p_161527_, int p_161528_, int p_161529_, int p_161530_, boolean p_161531_) - Specified by:
shouldSkipLocation
in classFoliagePlacer
-