Interface ITreeSpecies

All Superinterfaces:
IProductProducer, IRegistryAlleleValue, ISpecialtyProducer, ISpecies<ITree>, ITreeGenData

public interface ITreeSpecies extends ISpecies<ITree>, ITreeGenData, IProductProducer, ISpecialtyProducer
  • Method Details

    • getType

      ITreeSpeciesType getType()
      Specified by:
      getType in interface ISpecies<ITree>
      Returns:
      The type of species this is.
    • getGenerator

      ITreeGenerator getGenerator()
    • getDecorativeLeaves

      net.minecraft.world.item.ItemStack getDecorativeLeaves()
      Returns:
      The "decorative" form of this leaf block, with no block entity or genome. Used for pick-block and shears.
    • getTemperature

      TemperatureType getTemperature()
      Returns:
      The ideal temperature for this tree to grow in.
    • getHumidity

      HumidityType getHumidity()
      Returns:
      The ideal humidity for this tree to grow in.
    • getVanillaLeafStates

      List<net.minecraft.world.level.block.state.BlockState> getVanillaLeafStates()
      Returns:
      A list of mundane forms of this species's leaf blocks. Example: Vanilla leaves, Forestry decorative leaves
    • getVanillaSaplingItems

      List<net.minecraft.world.item.Item> getVanillaSaplingItems()
      Returns:
      A list of mundane item forms of this species's saplings. Example: Oak Sapling, Birch Sapling
    • getGermlingColor

      int getGermlingColor(ILifeStage stage, int renderPass)
    • getRarity

      float getRarity()
      Returns:
      The chance between 0 and 1 that this tree will spawn in a chunk during world generation. Default is 0.
    • isFruitLeaf

      boolean isFruitLeaf(net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos)
      Determines if the block at the position is a leaves block with fruit on it.
      Parameters:
      level - The world.
      pos - The position of the block to check.
      Returns:
      true if this is a leaves block with fruit on it, false otherwise.