Class FoliagePlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer
- Direct Known Subclasses:
AcaciaFoliagePlacer
,BlobFoliagePlacer
,DarkOakFoliagePlacer
,MegaJungleFoliagePlacer
,MegaPineFoliagePlacer
,PineFoliagePlacer
,RandomSpreadFoliagePlacer
,SpruceFoliagePlacer
-
Nested Class Summary
-
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_225605_, BiConsumer<BlockPos, BlockState> p_225606_, RandomSource p_225607_, TreeConfiguration p_225608_, int p_225609_, FoliagePlacer.FoliageAttachment p_225610_, int p_225611_, int p_225612_) protected abstract void
createFoliage
(LevelSimulatedReader p_225613_, BiConsumer<BlockPos, BlockState> p_225614_, 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_, BiConsumer<BlockPos, BlockState> p_225630_, RandomSource p_225631_, TreeConfiguration p_225632_, BlockPos p_225633_, int p_225634_, int p_225635_, boolean p_225636_) 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 void
tryPlaceLeaf
(LevelSimulatedReader p_225623_, BiConsumer<BlockPos, BlockState> p_225624_, RandomSource p_225625_, TreeConfiguration p_225626_, BlockPos p_225627_) 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_225605_, BiConsumer<BlockPos, BlockState> p_225606_, RandomSource p_225607_, TreeConfiguration p_225608_, int p_225609_, FoliagePlacer.FoliageAttachment p_225610_, int p_225611_, int p_225612_) -
createFoliage
protected abstract void createFoliage(LevelSimulatedReader p_225613_, BiConsumer<BlockPos, BlockState> p_225614_, 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_, BiConsumer<BlockPos, BlockState> p_225630_, RandomSource p_225631_, TreeConfiguration p_225632_, BlockPos p_225633_, int p_225634_, int p_225635_, boolean p_225636_) -
tryPlaceLeaf
protected static void tryPlaceLeaf(LevelSimulatedReader p_225623_, BiConsumer<BlockPos, BlockState> p_225624_, RandomSource p_225625_, TreeConfiguration p_225626_, BlockPos p_225627_)
-