Class BaobabTreeGrower
java.lang.Object
net.minecraft.world.level.block.grower.AbstractTreeGrower
net.minecraft.world.level.block.grower.AbstractMegaTreeGrower
net.frozenblock.wilderwild.worldgen.impl.sapling.BaobabTreeGrower
- Direct Known Subclasses:
BaobabSaplingGenerator
public abstract class BaobabTreeGrower
extends net.minecraft.world.level.block.grower.AbstractMegaTreeGrower
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanGenerateBaobabTree(@NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.level.BlockGetter level, @NotNull net.minecraft.core.BlockPos pos, int xPos, int zPos) booleangenerateBaobabTree(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.util.RandomSource random, int xOffset, int zOffset) protected abstract @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?, ?>> getBaobabTreeFeature(@NotNull net.minecraft.util.RandomSource random) protected net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?, ?>> getConfiguredMegaFeature(@NotNull net.minecraft.util.RandomSource random) booleangrowTree(@NotNull net.minecraft.server.level.ServerLevel level, @NotNull net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, @NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.util.RandomSource random) Methods inherited from class net.minecraft.world.level.block.grower.AbstractMegaTreeGrower
isTwoByTwoSapling, placeMegaMethods inherited from class net.minecraft.world.level.block.grower.AbstractTreeGrower
getConfiguredFeature
-
Constructor Details
-
BaobabTreeGrower
public BaobabTreeGrower()
-
-
Method Details
-
canGenerateBaobabTree
public static boolean canGenerateBaobabTree(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.level.BlockGetter level, @NotNull @NotNull net.minecraft.core.BlockPos pos, int xPos, int zPos) -
growTree
public boolean growTree(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.util.RandomSource random) - Overrides:
growTreein classnet.minecraft.world.level.block.grower.AbstractMegaTreeGrower
-
getBaobabTreeFeature
@Nullable protected abstract @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?,?>> getBaobabTreeFeature(@NotNull @NotNull net.minecraft.util.RandomSource random) -
getConfiguredMegaFeature
protected net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?,?>> getConfiguredMegaFeature(@NotNull @NotNull net.minecraft.util.RandomSource random) - Specified by:
getConfiguredMegaFeaturein classnet.minecraft.world.level.block.grower.AbstractMegaTreeGrower
-
generateBaobabTree
public boolean generateBaobabTree(@NotNull @NotNull net.minecraft.server.level.ServerLevel level, @NotNull @NotNull net.minecraft.world.level.chunk.ChunkGenerator chunkGenerator, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.util.RandomSource random, int xOffset, int zOffset)
-