Class SplitWindow
java.lang.Object
de.studiocode.invui.window.impl.BaseWindow
de.studiocode.invui.window.impl.merged.MergedWindow
de.studiocode.invui.window.impl.merged.split.SplitWindow
- Direct Known Subclasses:
AnvilSplitWindow,CartographySplitWindow,SimpleSplitWindow
-
Field Summary
Fields inherited from class de.studiocode.invui.window.impl.merged.MergedWindow
upperInventory -
Constructor Summary
ConstructorsConstructorDescriptionSplitWindow(org.bukkit.entity.Player player, net.md_5.bungee.api.chat.BaseComponent[] title, GUI upperGui, GUI lowerGui, org.bukkit.inventory.Inventory upperInventory, boolean initItems, boolean closeable, boolean removeOnClose) -
Method Summary
Modifier and TypeMethodDescriptiongetGuiAt(int index) GUI[]getGuis()Gets the underlyingGUIs.getSlotElement(int index) getWhereClicked(org.bukkit.event.inventory.InventoryClickEvent event) voidhandleSlotElementUpdate(GUI child, int slotIndex) Called by the childGUIto report an update of aSlotElement.Methods inherited from class de.studiocode.invui.window.impl.merged.MergedWindow
getInventories, getPlayerInventory, getUpperInventory, handleClick, handleClosed, handleCursorCollect, handleItemShift, handleOpened, handleViewerDeath, initUpperItems, redrawItem, setInvItem, setPlayerInvItem, setUpperInvItemMethods inherited from class de.studiocode.invui.window.impl.BaseWindow
addCloseHandler, changeTitle, changeTitle, close, closeForViewer, getCurrentViewer, getItemSlotElements, getViewer, getViewerUUID, getVISlotElements, handleClose, handleDrag, handleItemProviderUpdate, handleOpen, handleVirtualInventoryUpdate, isCloseable, isClosed, redrawItem, register, removeCloseHandler, setCloseable, show
-
Constructor Details
-
SplitWindow
-
-
Method Details
-
handleSlotElementUpdate
Description copied from interface:GUIParentCalled by the childGUIto report an update of aSlotElement.- Parameters:
child- The childGUIwhoseSlotElementhas changedslotIndex- The slot index of the changedSlotElementin the childGUI
-
getSlotElement
- Specified by:
getSlotElementin classMergedWindow
-
getWhereClicked
- Specified by:
getWhereClickedin classMergedWindow
-
getGuiAt
- Specified by:
getGuiAtin classBaseWindow
-
getGuis
Description copied from interface:WindowGets the underlyingGUIs.- Returns:
- The underlying
GUIs.
-