Package de.studiocode.invui.gui.impl
Class TabGUI
java.lang.Object
de.studiocode.invui.gui.impl.BaseGUI
de.studiocode.invui.gui.impl.TabGUI
- All Implemented Interfaces:
Controllable,GUI,GUIParent
- Direct Known Subclasses:
SimpleTabGUI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintprotected abstract List<SlotElement>getSlotElements(int tab) protected abstract voidhandleTabChange(int previous, int now) abstract booleanisTabAvailable(int tab) voidshowTab(int tab) protected voidupdate()Methods inherited from class de.studiocode.invui.gui.impl.BaseGUI
addItems, addParent, applyStructure, cancelAnimation, closeForAllViewers, fill, fill, fill, fillBorders, fillColumn, fillRectangle, fillRectangle, fillRectangle, fillRectangle, fillRow, findAllCurrentViewers, findAllWindows, getAllVirtualInventories, getBackground, getHeight, getItem, getItem, getParents, getSize, getSlotElement, getSlotElement, getSlotElements, getWidth, handleClick, handleItemDrag, handleItemShift, handleSlotElementUpdate, handleVIDoubleClick, handleVIDrop, handleVIItemShift, handleVILeftClick, handleVINumberKey, handleVIOffHandKey, handleVIRightClick, handleVISlotElementClick, hasSlotElement, hasSlotElement, playAnimation, putIntoFirstVirtualInventory, remove, remove, removeParent, setBackground, setItem, setItem, setSlotElement, setSlotElement, updateControlItemsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.studiocode.invui.gui.Controllable
updateControlItems
-
Constructor Details
-
TabGUI
public TabGUI(int width, int height, int tabAmount, int... listSlots) -
TabGUI
-
-
Method Details
-
showTab
public void showTab(int tab) -
update
protected void update() -
getFirstAvailableTab
public int getFirstAvailableTab() -
getCurrentTab
public int getCurrentTab() -
isTabAvailable
public abstract boolean isTabAvailable(int tab) -
getSlotElements
-
handleTabChange
protected abstract void handleTabChange(int previous, int now)
-