mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Change the plugin system to a module system and slit up modules
-Moved the woodpile from the arboriculture module to the charcoal module -Moved the backpacks from the storage module to the backpacks module -Moved the crates from the storage module to the creates module -Added the database module with a new storage for individuals -Added a gui element system to improve the alyzer api -Added a species plugin interface to handle the database gui -Added some alyzer methods to the species plugin to move the alyzer integration later to it
This commit is contained in:
1 parent
ee272de168
commit
88fd031fb4
277 files changed
+7361
-1930
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package forestry.api.genetics;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.api.core.IGuiElementHelper;
|
||||
|
||||
/**
|
||||
* A tab of the database screen that shows some information about a {@link IIndividual}.
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public interface IDatabaseTab<I extends IIndividual> {
|
||||
/**
|
||||
* Creates the gui elements that are displayed if this tab is selected in the database.
|
||||
*
|
||||
* @param individual The individual that is currently in the database selected.
|
||||
* @param elementHelper A helper to create the gui elements.
|
||||
*/
|
||||
void createElements(IGuiElementHelper elementHelper, I individual, ItemStack itemStack);
|
||||
|
||||
/**
|
||||
* @return The slot of this tab.
|
||||
*/
|
||||
EnumDatabaseTab getTab();
|
||||
|
||||
/**
|
||||
* Can be used to give the tab a custom tooltip.
|
||||
*/
|
||||
@Nullable
|
||||
default String getTooltip(I individual){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user