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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RandomSpreadFoliagePlacer>private final IntProviderprivate final intFields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius -
Constructor Summary
ConstructorsConstructorDescriptionRandomSpreadFoliagePlacer(IntProvider p_161506_, IntProvider p_161507_, IntProvider p_161508_, int p_161509_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateFoliage(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_) intfoliageHeight(Random p_161533_, int p_161534_, TreeConfiguration p_161535_) protected booleanshouldSkipLocation(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:
typein 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:
createFoliagein classFoliagePlacer
-
foliageHeight
- Specified by:
foliageHeightin 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:
shouldSkipLocationin classFoliagePlacer
-