Class SpruceFoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
net.minecraft.world.level.levelgen.feature.foliageplacers.SpruceFoliagePlacer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
FoliagePlacer.FoliageAttachment
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<SpruceFoliagePlacer>
private IntProvider
Fields inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
offset, radius
-
Constructor Summary
ConstructorDescriptionSpruceFoliagePlacer(IntProvider p_161539_, IntProvider p_161540_, IntProvider p_161541_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createFoliage(LevelSimulatedReader p_161543_, BiConsumer<BlockPos,BlockState> p_161544_, Random p_161545_, TreeConfiguration p_161546_, int p_161547_, FoliagePlacer.FoliageAttachment p_161548_, int p_161549_, int p_161550_, int p_161551_)
int
foliageHeight(Random p_68744_, int p_68745_, TreeConfiguration p_68746_)
protected boolean
shouldSkipLocation(Random p_68737_, int p_68738_, int p_68739_, int p_68740_, int p_68741_, boolean p_68742_)
protected FoliagePlacerType<?>
type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
createFoliage, foliagePlacerParts, foliageRadius, placeLeavesRow, shouldSkipLocationSigned, tryPlaceLeaf
-
Field Details
-
CODEC
-
trunkHeight
-
-
Constructor Details
-
SpruceFoliagePlacer
-
-
Method Details
-
type
- Specified by:
type
in classFoliagePlacer
-
createFoliage
protected void createFoliage(LevelSimulatedReader p_161543_, BiConsumer<BlockPos,BlockState> p_161544_, Random p_161545_, TreeConfiguration p_161546_, int p_161547_, FoliagePlacer.FoliageAttachment p_161548_, int p_161549_, int p_161550_, int p_161551_)- Specified by:
createFoliage
in classFoliagePlacer
-
foliageHeight
- Specified by:
foliageHeight
in classFoliagePlacer
-
shouldSkipLocation
protected boolean shouldSkipLocation(Random p_68737_, int p_68738_, int p_68739_, int p_68740_, int p_68741_, boolean p_68742_)- Specified by:
shouldSkipLocation
in classFoliagePlacer
-