Class AbstractMegaTreeGrower
java.lang.Object
net.minecraft.world.level.block.grower.AbstractTreeGrower
net.minecraft.world.level.block.grower.AbstractMegaTreeGrower
- Direct Known Subclasses:
DarkOakTreeGrower
,JungleTreeGrower
,SpruceTreeGrower
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Holder<? extends ConfiguredFeature<?,
?>> getConfiguredMegaFeature
(ServerLevel level, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, RandomSource random) protected abstract Holder<? extends ConfiguredFeature<?,
?>> getConfiguredMegaFeature
(RandomSource p_222904_) Deprecated.boolean
growTree
(ServerLevel p_222891_, ChunkGenerator p_222892_, BlockPos p_222893_, BlockState p_222894_, RandomSource p_222895_) static boolean
isTwoByTwoSapling
(BlockState p_59999_, BlockGetter p_60000_, BlockPos p_60001_, int p_60002_, int p_60003_) boolean
placeMega
(ServerLevel p_222897_, ChunkGenerator p_222898_, BlockPos p_222899_, BlockState p_222900_, RandomSource p_222901_, int p_222902_, int p_222903_) Methods inherited from class net.minecraft.world.level.block.grower.AbstractTreeGrower
getConfiguredFeature, getConfiguredFeature
-
Constructor Details
-
AbstractMegaTreeGrower
public AbstractMegaTreeGrower()
-
-
Method Details
-
growTree
public boolean growTree(ServerLevel p_222891_, ChunkGenerator p_222892_, BlockPos p_222893_, BlockState p_222894_, RandomSource p_222895_) - Overrides:
growTree
in classAbstractTreeGrower
-
getConfiguredMegaFeature
@Nullable protected Holder<? extends ConfiguredFeature<?,?>> getConfiguredMegaFeature(ServerLevel level, ChunkGenerator chunkGenerator, BlockPos pos, BlockState state, RandomSource random) -
getConfiguredMegaFeature
@Deprecated @Nullable protected abstract Holder<? extends ConfiguredFeature<?,?>> getConfiguredMegaFeature(RandomSource p_222904_) Deprecated. -
placeMega
public boolean placeMega(ServerLevel p_222897_, ChunkGenerator p_222898_, BlockPos p_222899_, BlockState p_222900_, RandomSource p_222901_, int p_222902_, int p_222903_) -
isTwoByTwoSapling
public static boolean isTwoByTwoSapling(BlockState p_59999_, BlockGetter p_60000_, BlockPos p_60001_, int p_60002_, int p_60003_)
-
getConfiguredMegaFeature(ServerLevel, ChunkGenerator, BlockPos, BlockState, RandomSource)
instead