Package de.studiocode.invui.gui.impl
Class SimpleTabGUI
java.lang.Object
de.studiocode.invui.gui.impl.BaseGUI
de.studiocode.invui.gui.impl.TabGUI
de.studiocode.invui.gui.impl.SimpleTabGUI
- All Implemented Interfaces:
Controllable,GUI,GUIParent
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleTabGUI(int width, int height, @NotNull List<GUI> tabs, int[] listSlots) SimpleTabGUI(@NotNull List<GUI> tabs, @NotNull Structure structure) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTabChangeHandler(@NotNull BiConsumer<Integer, Integer> tabChangeHandler) protected List<SlotElement>getSlotElements(int tab) @Nullable List<BiConsumer<Integer,Integer>> getTabs()protected voidhandleTabChange(int previous, int now) booleanisTabAvailable(int tab) voidremoveTabChangeHandler(@NotNull BiConsumer<Integer, Integer> tabChangeHandler) voidsetTabChangeHandlers(@Nullable List<BiConsumer<Integer, Integer>> tabChangeHandlers) Methods inherited from class de.studiocode.invui.gui.impl.TabGUI
getCurrentTab, getFirstAvailableTab, showTab, updateMethods 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
-
SimpleTabGUI
-
SimpleTabGUI
-
-
Method Details
-
getTabs
-
isTabAvailable
public boolean isTabAvailable(int tab) - Specified by:
isTabAvailablein classTabGUI
-
addTabChangeHandler
-
removeTabChangeHandler
-
getTabChangeHandlers
-
setTabChangeHandlers
public void setTabChangeHandlers(@Nullable @Nullable List<BiConsumer<Integer, Integer>> tabChangeHandlers) -
handleTabChange
protected void handleTabChange(int previous, int now) - Specified by:
handleTabChangein classTabGUI
-
getSlotElements
- Specified by:
getSlotElementsin classTabGUI
-