Class HorizontalSplitGUIPane
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.pane.GUIPane
de.placeblock.betterinventories.content.pane.impl.HorizontalSplitGUIPane
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
PaginatorGUIPane
A
Builder:
GUIPane with an upper and lower pane.
Renders the lower pane always below the upper pane.
Builder:
HorizontalSplitGUIPaneBuilder-
Nested Class Summary
Nested classes/interfaces inherited from class de.placeblock.betterinventories.content.GUISection
GUISection.SearchData -
Field Summary
Fields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
ConstructorsConstructorDescriptionHorizontalSplitGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize) Creates a new HorizontalSplitGUIPane -
Method Summary
Modifier and TypeMethodDescriptionImplemented by GUIPanes Should return all children sectionsvoidonItemProvide(org.bukkit.inventory.ItemStack item) Called when an item is provided by an inventory MOVE_TO_OTHER_INVENTORY eventList<org.bukkit.inventory.ItemStack>render()Renders the Pane on a listReturns the GUISection at a specific position.voidupdateSize(Sizeable parent) Updates the size of the Pane based on the height of upper and lower Pane.voidupdateSizeRecursive(Sizeable parent) Is called to recursively update the size of allGUIPanesMethods inherited from class de.placeblock.betterinventories.content.pane.GUIPane
onItemAdd, onItemAmount, onItemClick, onItemRemove, onSizeChange, provideItem, renderOnList, setHeight, setSize, setWidth, updateChildrenRecursiveMethods inherited from class de.placeblock.betterinventories.content.GUISection
getEmptyContentList, getHeight, getSlots, getWidth, search, slotToVector, vectorToSlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.placeblock.betterinventories.Sizeable
clampSize, getMaxSize, getMinSize, getSize
-
Constructor Details
-
HorizontalSplitGUIPane
Creates a new HorizontalSplitGUIPane- Parameters:
gui- The GUIminSize- The minimum size of the PanemaxSize- The maximum size of the Pane
-
-
Method Details
-
updateSizeRecursive
Is called to recursively update the size of allGUIPanes- Specified by:
updateSizeRecursivein classGUIPane- Parameters:
parent- The parent Pane or GUI (Sizeable)
-
updateSize
Updates the size of the Pane based on the height of upper and lower Pane.- Specified by:
updateSizein classGUIPane- Parameters:
parent- The parent Pane or GUI (Sizeable)
-
getChildren
Description copied from class:GUIPaneImplemented by GUIPanes Should return all children sections- Specified by:
getChildrenin classGUIPane- Returns:
- All children (upper and lower Pane)
-
onItemProvide
public void onItemProvide(org.bukkit.inventory.ItemStack item) Description copied from class:GUIPaneCalled when an item is provided by an inventory MOVE_TO_OTHER_INVENTORY event- Specified by:
onItemProvidein classGUIPane- Parameters:
item- The provided item. Method reduces the amount of the item by the number that got accepted.
-
render
Renders the Pane on a list- Specified by:
renderin classGUISection- Returns:
- The List
-
getLowerPanePos
- Returns:
- The position of the lower Pane taking the height of the upper Pane into account
-
search
Returns the GUISection at a specific position.- Specified by:
searchin classGUISection- Parameters:
position- The positiononlyPanes- Whether to return only panes even if there is an item at the clicked slot- Returns:
- The GUISection
-