Class BaobabTreeGrower
java.lang.Object
net.minecraft.world.level.block.grower.TreeGrower
net.frozenblock.wilderwild.worldgen.impl.sapling.BaobabTreeGrower
public abstract class BaobabTreeGrower
extends net.minecraft.world.level.block.grower.TreeGrower
-
Field Summary
Fields inherited from class net.minecraft.world.level.block.grower.TreeGrower
ACACIA, AZALEA, BIRCH, CHERRY, CODEC, DARK_OAK, JUNGLE, MANGROVE, OAK, PALE_OAK, SPRUCE -
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) net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?, ?>> getConfiguredFeature(@NotNull net.minecraft.util.RandomSource random, boolean flowers) 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)
-
Constructor Details
-
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.TreeGrower
-
getBaobabTreeFeature
@Nullable protected abstract @Nullable net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?,?>> getBaobabTreeFeature(@NotNull @NotNull net.minecraft.util.RandomSource random) -
getConfiguredFeature
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?,?>> getConfiguredFeature(@NotNull @NotNull net.minecraft.util.RandomSource random, boolean flowers) - Overrides:
getConfiguredFeaturein classnet.minecraft.world.level.block.grower.TreeGrower
-
getConfiguredMegaFeature
public net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.feature.ConfiguredFeature<?,?>> getConfiguredMegaFeature(@NotNull @NotNull net.minecraft.util.RandomSource random) - Overrides:
getConfiguredMegaFeaturein classnet.minecraft.world.level.block.grower.TreeGrower
-
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)
-