net.minecraft.world.level.levelgen.feature.rootplacers

public abstract class RootPlacer

dry
net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer
net.minecraft.class_7387
net.minecraft.world.gen.root.RootPlacer
net.minecraft.src.C_213149_
net.minecraft.world.level.levelgen.feature.rootplacers.RootPlacer

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<RootPlacer>
d
CODEC
field_38779
TYPE_CODEC
f_225859_
protected final IntProvider
e
trunkOffsetY
field_38868
trunkOffsetY
f_225860_
protected final BlockStateProvider
f
rootProvider
field_38780
rootProvider
f_225861_
protected final Optional<AboveRootPlacement>
g
aboveRootPlacement
field_38869
aboveRootPlacement
f_225862_

Constructor summary

ModifierConstructor
public (IntProvider trunkOffsetY, BlockStateProvider rootProvider, Optional<AboveRootPlacement> aboveRootPlacement)

Method summary

Modifier and TypeMethod
protected static <P extends RootPlacer> com.mojang.datafixers.Products$P3<com.mojang.serialization.codecs.RecordCodecBuilder$Mu<P>, IntProvider, BlockStateProvider, Optional<AboveRootPlacement>>
a(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
rootPlacerParts(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
method_43182(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
method_43182(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> arg0)
m_225885_(com.mojang.serialization.codecs.RecordCodecBuilder$Instance<P> p_225886_)
protected abstract RootPlacerType<?>
a()
type()
method_43165()
getType()
m_213745_()
public abstract boolean
a(cqb arg0, BiConsumer<gw, dfj> arg1, asc arg2, gw arg3, gw arg4, dqw arg5)
placeRoots(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos arg3, BlockPos arg4, TreeConfiguration arg5)
method_43168(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338 arg3, class_2338 arg4, class_4643 arg5)
generate(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, BlockPos trunkPos, TreeFeatureConfig config)
m_213684_(C_1604_ p_225880_, BiConsumer<C_4675_, C_2064_> p_225881_, C_212974_ p_225882_, C_4675_ p_225883_, C_4675_ p_225884_, C_2366_ arg5)
protected boolean
a(cqb arg0, gw arg1)
canPlaceRoot(LevelSimulatedReader arg0, BlockPos arg1)
method_43167(class_3746 arg0, class_2338 arg1)
canGrowThrough(TestableWorld world, BlockPos pos)
m_213551_(C_1604_ p_225869_, C_4675_ arg1)
protected void
a(cqb arg0, BiConsumer<gw, dfj> arg1, asc arg2, gw arg3, dqw arg4)
placeRoot(LevelSimulatedReader arg0, BiConsumer<BlockPos, BlockState> arg1, RandomSource arg2, BlockPos arg3, TreeConfiguration arg4)
method_43172(class_3746 arg0, BiConsumer<class_2338, class_2680> arg1, class_5819 arg2, class_2338 arg3, class_4643 arg4)
placeRoots(TestableWorld world, BiConsumer<BlockPos, BlockState> replacer, Random random, BlockPos pos, TreeFeatureConfig config)
m_213654_(C_1604_ p_225875_, BiConsumer<C_4675_, C_2064_> p_225876_, C_212974_ p_225877_, C_4675_ p_225878_, C_2366_ arg4)
protected BlockState
a(cqb arg0, gw arg1, dfj arg2)
getPotentiallyWaterloggedState(LevelSimulatedReader arg0, BlockPos arg1, BlockState arg2)
method_43181(class_3746 arg0, class_2338 arg1, class_2680 arg2)
applyWaterlogging(TestableWorld world, BlockPos pos, BlockState state)
m_225870_(C_1604_ p_225872_, C_4675_ p_225873_, C_2064_ arg2)
public BlockPos
a(gw arg0, asc arg1)
getTrunkOrigin(BlockPos arg0, RandomSource arg1)
method_43309(class_2338 arg0, class_5819 arg1)
trunkOffset(BlockPos pos, Random random)
m_225891_(C_4675_ p_225893_, C_212974_ arg1)