Interface IDatabaseTab<I extends IIndividual>


public interface IDatabaseTab<I extends IIndividual>
A tab of the database screen that shows some information about a IIndividual.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createElements(forestry.core.gui.elements.DatabaseElement container, I individual, ILifeStage stage, net.minecraft.world.item.ItemStack stack)
    Creates the gui elements that are displayed if this tab is selected in the database.
    net.minecraft.world.item.ItemStack
     
    default DatabaseMode
     
    default net.minecraft.network.chat.Component
    getTooltip(I individual)
    Can be used to give the tab a custom tooltip.
  • Method Details

    • createElements

      void createElements(forestry.core.gui.elements.DatabaseElement container, I individual, ILifeStage stage, net.minecraft.world.item.ItemStack stack)
      Creates the gui elements that are displayed if this tab is selected in the database.
      Parameters:
      container - A helper to create the gui elements.
      individual - The individual that is currently in the database selected.
      stage -
    • getIconStack

      net.minecraft.world.item.ItemStack getIconStack()
    • getTooltip

      default net.minecraft.network.chat.Component getTooltip(I individual)
      Can be used to give the tab a custom tooltip.
    • getMode

      default DatabaseMode getMode()