Package de.studiocode.invui.gui.impl
Class ScrollGUI
java.lang.Object
de.studiocode.invui.gui.impl.BaseGUI
de.studiocode.invui.gui.impl.ScrollGUI
- All Implemented Interfaces:
Controllable,GUI,GUIParent
- Direct Known Subclasses:
SimpleScrollItemsGUI,SimpleScrollNestedGUI,SimpleScrollVIGUI
A scrollable
GUI- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanScroll(int lines) intprotected abstract List<? extends SlotElement>getElements(int from, int to) intprotected abstract intvoidscroll(int lines) voidsetCurrentLine(int line) 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, updateControlItems
-
Field Details
-
offset
protected int offset
-
-
Constructor Details
-
ScrollGUI
public ScrollGUI(int width, int height, boolean infiniteLines, int... itemListSlots) -
ScrollGUI
-
-
Method Details
-
getLineLength
public int getLineLength() -
getCurrentLine
public int getCurrentLine() -
setCurrentLine
public void setCurrentLine(int line) -
canScroll
public boolean canScroll(int lines) -
scroll
public void scroll(int lines) -
update
protected void update() -
getMaxLineIndex
protected abstract int getMaxLineIndex() -
getElements
-