Class IOGUIPane
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.pane.GUIPane
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane<GUIItem,SimpleItemGUIPane>
de.placeblock.betterinventories.content.pane.impl.simple.SimpleItemGUIPane
de.placeblock.betterinventories.content.pane.impl.vanilla.IOGUIPane
- All Implemented Interfaces:
Sizeable
- Direct Known Subclasses:
SynchedGUIPane
GUIPane which allows Items to be inserted and taken out
-
Nested Class Summary
Nested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
BaseSimpleGUIPane.ChildData<C extends GUISection>Nested classes/interfaces inherited from class de.placeblock.betterinventories.content.GUISection
GUISection.SearchData -
Field Summary
Fields inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
autoSize, contentFields inherited from class de.placeblock.betterinventories.content.GUISection
maxSize, minSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCalled when an item is added to an empty slotbooleanonItemAmount(Vector2d position, int amount) Called when the amount of an item in a slot changesabstract voidonItemChange(Vector2d position) Called when an item changesvoidonItemProvide(org.bukkit.inventory.ItemStack itemStack) Called when an item is provided by an inventory MOVE_TO_OTHER_INVENTORY eventbooleanonItemRemove(Vector2d position) Called when an item is removed from an empty slotMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.SimpleItemGUIPane
flipX, flipY, getItem, getItem, shiftX, shiftYMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
addItemEmptySlot, clear, fill, getChildren, getNextEmptySlot, getSections, removeSection, removeSection, render, search, setSection, setSectionAt, setSectionAt, updateSize, updateSizeRecursiveMethods inherited from class de.placeblock.betterinventories.content.pane.GUIPane
onItemClick, 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
-
IOGUIPane
Creates a new TransferGUIPane- Parameters:
gui- The GUI for the Panesize- The size of the PaneautoSize- Whether to automatically resize the pane according to the children. If true it will set the size to the bounding box of all children.
-
IOGUIPane
Creates a new TransferGUIPane- Parameters:
gui- The GUI for the PaneminSize- The minimum size of the PanemaxSize- The maximum size of the Pane
-
IOGUIPane
Creates a new TransferGUIPane- Parameters:
gui- The GUIminSize- The minimum size of the PanemaxSize- The maximum size of the PaneautoSize- Whether to automatically resize the pane according to the children. If true it will set the size to the bounding box of all children.
-
-
Method Details
-
onItemAdd
Description copied from class:GUISectionCalled when an item is added to an empty slot -
onItemRemove
Description copied from class:GUISectionCalled when an item is removed from an empty slot- Overrides:
onItemRemovein classGUIPane- Parameters:
position- The relative position of the slot- Returns:
- Whether this action is allowed.
-
onItemAmount
Description copied from class:GUISectionCalled when the amount of an item in a slot changes- Overrides:
onItemAmountin classGUIPane- Parameters:
position- The relative position of the slotamount- The new amount of the item- Returns:
- Whether this action is allowed.
-
onItemProvide
public void onItemProvide(org.bukkit.inventory.ItemStack itemStack) Description copied from class:GUIPaneCalled when an item is provided by an inventory MOVE_TO_OTHER_INVENTORY event- Overrides:
onItemProvidein classBaseSimpleGUIPane<GUIItem,SimpleItemGUIPane> - Parameters:
itemStack- The provided item. Method reduces the amount of the item by the number that got accepted.
-
onItemChange
Called when an item changes- Parameters:
position- The position of the item that changed
-