Class AbstractTreeGrower
java.lang.Object
net.minecraft.world.level.block.grower.AbstractTreeGrower
- Direct Known Subclasses:
AbstractMegaTreeGrower
,AcaciaTreeGrower
,AzaleaTreeGrower
,BirchTreeGrower
,MangroveTreeGrower
,OakTreeGrower
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Holder<? extends ConfiguredFeature<?,
?>> getConfiguredFeature
(ServerLevel level, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, RandomSource random, boolean hasFlowers) protected abstract Holder<? extends ConfiguredFeature<?,
?>> getConfiguredFeature
(RandomSource p_222910_, boolean p_222911_) Deprecated.boolean
growTree
(ServerLevel p_222905_, ChunkGenerator p_222906_, BlockPos p_222907_, BlockState p_222908_, RandomSource p_222909_) private boolean
hasFlowers
(LevelAccessor p_60012_, BlockPos p_60013_)
-
Constructor Details
-
AbstractTreeGrower
public AbstractTreeGrower()
-
-
Method Details
-
getConfiguredFeature
@Nullable protected Holder<? extends ConfiguredFeature<?,?>> getConfiguredFeature(ServerLevel level, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, RandomSource random, boolean hasFlowers) -
getConfiguredFeature
@Deprecated @Nullable protected abstract Holder<? extends ConfiguredFeature<?,?>> getConfiguredFeature(RandomSource p_222910_, boolean p_222911_) Deprecated. -
growTree
public boolean growTree(ServerLevel p_222905_, ChunkGenerator p_222906_, BlockPos p_222907_, BlockState p_222908_, RandomSource p_222909_) -
hasFlowers
-
getConfiguredFeature(ServerLevel, ChunkGenerator, BlockPos, BlockState, RandomSource, boolean)
instead