Added repackaged cofh lib to help with the IDSU gui
This commit is contained in:
parent
54904b223f
commit
90be01753b
40 changed files with 5242 additions and 86 deletions
40
src/main/java/techreborn/cofhLib/gui/TabTracker.java
Executable file
40
src/main/java/techreborn/cofhLib/gui/TabTracker.java
Executable file
|
@ -0,0 +1,40 @@
|
|||
package techreborn.cofhLib.gui;
|
||||
|
||||
import techreborn.cofhLib.gui.element.TabBase;
|
||||
|
||||
/**
|
||||
* Keeps track of which tabs should be open by default when a player opens a GUI.
|
||||
*
|
||||
* @author King Lemming
|
||||
*/
|
||||
public class TabTracker
|
||||
{
|
||||
|
||||
private static Class<? extends TabBase> openedLeftTab;
|
||||
private static Class<? extends TabBase> openedRightTab;
|
||||
|
||||
public static Class<? extends TabBase> getOpenedLeftTab()
|
||||
{
|
||||
|
||||
return openedLeftTab;
|
||||
}
|
||||
|
||||
public static Class<? extends TabBase> getOpenedRightTab()
|
||||
{
|
||||
|
||||
return openedRightTab;
|
||||
}
|
||||
|
||||
public static void setOpenedLeftTab(Class<? extends TabBase> tabClass)
|
||||
{
|
||||
|
||||
openedLeftTab = tabClass;
|
||||
}
|
||||
|
||||
public static void setOpenedRightTab(Class<? extends TabBase> tabClass)
|
||||
{
|
||||
|
||||
openedRightTab = tabClass;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue