Class FoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
- Direct Known Subclasses:
AcaciaFoliagePlacer
,BlobFoliagePlacer
,CherryFoliagePlacer
,DarkOakFoliagePlacer
,MegaJungleFoliagePlacer
,MegaPineFoliagePlacer
,PineFoliagePlacer
,RandomSpreadFoliagePlacer
,SpruceFoliagePlacer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FoliagePlacer>
protected final IntProvider
protected final IntProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createFoliage
(LevelSimulatedReader p_273526_, FoliagePlacer.FoliageSetter p_273018_, RandomSource p_273425_, TreeConfiguration p_273138_, int p_273282_, FoliagePlacer.FoliageAttachment p_272944_, int p_272930_, int p_272727_) protected abstract void
createFoliage
(LevelSimulatedReader p_225613_, FoliagePlacer.FoliageSetter p_273598_, RandomSource p_225615_, TreeConfiguration p_225616_, int p_225617_, FoliagePlacer.FoliageAttachment p_225618_, int p_225619_, int p_225620_, int p_225621_) abstract int
foliageHeight
(RandomSource p_225601_, int p_225602_, TreeConfiguration p_225603_) protected static <P extends FoliagePlacer>
com.mojang.datafixers.Products.P2<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,IntProvider, IntProvider> foliagePlacerParts
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_68574_) int
foliageRadius
(RandomSource p_225593_, int p_225594_) private int
offset
(RandomSource p_225592_) protected void
placeLeavesRow
(LevelSimulatedReader p_225629_, FoliagePlacer.FoliageSetter p_272772_, RandomSource p_225631_, TreeConfiguration p_225632_, BlockPos p_225633_, int p_225634_, int p_225635_, boolean p_225636_) protected final void
placeLeavesRowWithHangingLeavesBelow
(LevelSimulatedReader p_273087_, FoliagePlacer.FoliageSetter p_273225_, RandomSource p_272629_, TreeConfiguration p_272885_, BlockPos p_273412_, int p_272712_, int p_272656_, boolean p_272689_, float p_273464_, float p_273068_) protected abstract boolean
shouldSkipLocation
(RandomSource p_225595_, int p_225596_, int p_225597_, int p_225598_, int p_225599_, boolean p_225600_) protected boolean
shouldSkipLocationSigned
(RandomSource p_225639_, int p_225640_, int p_225641_, int p_225642_, int p_225643_, boolean p_225644_) protected static boolean
tryPlaceLeaf
(LevelSimulatedReader p_273596_, FoliagePlacer.FoliageSetter p_273054_, RandomSource p_272977_, TreeConfiguration p_273040_, BlockPos p_273406_) protected abstract FoliagePlacerType<?>
type()
-
Field Details
-
CODEC
-
radius
-
offset
-
-
Constructor Details
-
FoliagePlacer
-
-
Method Details
-
foliagePlacerParts
protected static <P extends FoliagePlacer> com.mojang.datafixers.Products.P2<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,IntProvider, foliagePlacerPartsIntProvider> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_68574_) -
type
-
createFoliage
public void createFoliage(LevelSimulatedReader p_273526_, FoliagePlacer.FoliageSetter p_273018_, RandomSource p_273425_, TreeConfiguration p_273138_, int p_273282_, FoliagePlacer.FoliageAttachment p_272944_, int p_272930_, int p_272727_) -
createFoliage
protected abstract void createFoliage(LevelSimulatedReader p_225613_, FoliagePlacer.FoliageSetter p_273598_, RandomSource p_225615_, TreeConfiguration p_225616_, int p_225617_, FoliagePlacer.FoliageAttachment p_225618_, int p_225619_, int p_225620_, int p_225621_) -
foliageHeight
public abstract int foliageHeight(RandomSource p_225601_, int p_225602_, TreeConfiguration p_225603_) -
foliageRadius
-
offset
-
shouldSkipLocation
protected abstract boolean shouldSkipLocation(RandomSource p_225595_, int p_225596_, int p_225597_, int p_225598_, int p_225599_, boolean p_225600_) -
shouldSkipLocationSigned
protected boolean shouldSkipLocationSigned(RandomSource p_225639_, int p_225640_, int p_225641_, int p_225642_, int p_225643_, boolean p_225644_) -
placeLeavesRow
protected void placeLeavesRow(LevelSimulatedReader p_225629_, FoliagePlacer.FoliageSetter p_272772_, RandomSource p_225631_, TreeConfiguration p_225632_, BlockPos p_225633_, int p_225634_, int p_225635_, boolean p_225636_) -
placeLeavesRowWithHangingLeavesBelow
protected final void placeLeavesRowWithHangingLeavesBelow(LevelSimulatedReader p_273087_, FoliagePlacer.FoliageSetter p_273225_, RandomSource p_272629_, TreeConfiguration p_272885_, BlockPos p_273412_, int p_272712_, int p_272656_, boolean p_272689_, float p_273464_, float p_273068_) -
tryPlaceLeaf
protected static boolean tryPlaceLeaf(LevelSimulatedReader p_273596_, FoliagePlacer.FoliageSetter p_273054_, RandomSource p_272977_, TreeConfiguration p_273040_, BlockPos p_273406_)
-