Package forestry.api.genetics.gatgets
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 TypeMethodDescriptionvoidcreateElements(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.ItemStackdefault DatabaseModegetMode()default net.minecraft.network.chat.ComponentgetTooltip(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
Can be used to give the tab a custom tooltip. -
getMode
-