mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 20:42:35 +00:00
Improve and Clean Up Gui Elements
This commit is contained in:
1 parent
64c0590bef
commit
30010d2554
86 files changed
+3026
-1129
No files matched your search
@@ -7,7 +7,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
import forestry.api.gui.IElementGenetic;
|
||||
import forestry.api.gui.IDatabaseElement;
|
||||
|
||||
/**
|
||||
* A tab of the database screen that shows some information about a {@link IIndividual}.
|
||||
@@ -20,7 +20,7 @@ public interface IDatabaseTab<I extends IIndividual> {
|
||||
* @param individual The individual that is currently in the database selected.
|
||||
* @param container A helper to create the gui elements.
|
||||
*/
|
||||
void createElements(IElementGenetic container, I individual, ItemStack itemStack);
|
||||
void createElements(IDatabaseElement container, I individual, ItemStack itemStack);
|
||||
|
||||
ItemStack getIconStack();
|
||||
|
||||
@@ -31,4 +31,8 @@ public interface IDatabaseTab<I extends IIndividual> {
|
||||
default String getTooltip(I individual){
|
||||
return null;
|
||||
}
|
||||
|
||||
default DatabaseMode getMode(){
|
||||
return DatabaseMode.ACTIVE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user