Package de.studiocode.invui.gui.impl
Class SimpleScrollVIGUI
java.lang.Object
de.studiocode.invui.gui.impl.BaseGUI
de.studiocode.invui.gui.impl.ScrollGUI
de.studiocode.invui.gui.impl.SimpleScrollVIGUI
- All Implemented Interfaces:
Controllable,GUI,GUIParent
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleScrollVIGUI(int width, int height, @Nullable VirtualInventory inventory, int... itemListSlots) SimpleScrollVIGUI(@Nullable VirtualInventory inventory, @NotNull Structure structure) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SlotElement.VISlotElement>getElements(int from, int to) protected intvoidsetInventory(VirtualInventory inventory) Methods inherited from class de.studiocode.invui.gui.impl.ScrollGUI
canScroll, getCurrentLine, getLineLength, scroll, setCurrentLine, 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, updateControlItems
-
Constructor Details
-
SimpleScrollVIGUI
public SimpleScrollVIGUI(int width, int height, @Nullable @Nullable VirtualInventory inventory, int... itemListSlots) -
SimpleScrollVIGUI
public SimpleScrollVIGUI(@Nullable @Nullable VirtualInventory inventory, @NotNull @NotNull Structure structure)
-
-
Method Details
-
setInventory
-
getElements
- Specified by:
getElementsin classScrollGUI
-
getMaxLineIndex
protected int getMaxLineIndex()- Specified by:
getMaxLineIndexin classScrollGUI
-