Class RootPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
- Direct Known Subclasses:
MangroveRootPlacer
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Optional<AboveRootPlacement>
static final com.mojang.serialization.Codec<RootPlacer>
protected final BlockStateProvider
protected final IntProvider
-
Constructor Summary
ConstructorDescriptionRootPlacer
(IntProvider p_225865_, BlockStateProvider p_225866_, Optional<AboveRootPlacement> p_225867_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPlaceRoot
(LevelSimulatedReader p_225868_, BlockPos p_225869_) protected BlockState
getPotentiallyWaterloggedState
(LevelSimulatedReader p_225871_, BlockPos p_225872_, BlockState p_225873_) getTrunkOrigin
(BlockPos p_225892_, RandomSource p_225893_) protected void
placeRoot
(LevelSimulatedReader p_225874_, BiConsumer<BlockPos, BlockState> p_225875_, RandomSource p_225876_, BlockPos p_225877_, TreeConfiguration p_225878_) abstract boolean
placeRoots
(LevelSimulatedReader p_225879_, BiConsumer<BlockPos, BlockState> p_225880_, RandomSource p_225881_, BlockPos p_225882_, BlockPos p_225883_, TreeConfiguration p_225884_) protected static <P extends RootPlacer>
com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,IntProvider, BlockStateProvider, Optional<AboveRootPlacement>> rootPlacerParts
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_225886_) protected abstract RootPlacerType<?>
type()
-
Field Details
-
CODEC
-
trunkOffsetY
-
rootProvider
-
aboveRootPlacement
-
-
Constructor Details
-
RootPlacer
public RootPlacer(IntProvider p_225865_, BlockStateProvider p_225866_, Optional<AboveRootPlacement> p_225867_)
-
-
Method Details
-
rootPlacerParts
protected static <P extends RootPlacer> com.mojang.datafixers.Products.P3<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,IntProvider, rootPlacerPartsBlockStateProvider, Optional<AboveRootPlacement>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> p_225886_) -
type
-
placeRoots
public abstract boolean placeRoots(LevelSimulatedReader p_225879_, BiConsumer<BlockPos, BlockState> p_225880_, RandomSource p_225881_, BlockPos p_225882_, BlockPos p_225883_, TreeConfiguration p_225884_) -
canPlaceRoot
-
placeRoot
protected void placeRoot(LevelSimulatedReader p_225874_, BiConsumer<BlockPos, BlockState> p_225875_, RandomSource p_225876_, BlockPos p_225877_, TreeConfiguration p_225878_) -
getPotentiallyWaterloggedState
protected BlockState getPotentiallyWaterloggedState(LevelSimulatedReader p_225871_, BlockPos p_225872_, BlockState p_225873_) -
getTrunkOrigin
-