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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canGenerateBaobabTree(@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)
     
    boolean
    generateBaobabTree(@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)
     
    boolean
    growTree(@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, placeMega

    Methods inherited from class net.minecraft.world.level.block.grower.AbstractTreeGrower

    getConfiguredFeature

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      growTree in class net.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:
      getConfiguredMegaFeature in class net.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)