Class SynchedGUIPane
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
de.placeblock.betterinventories.content.pane.impl.vanilla.SynchedGUIPane
- All Implemented Interfaces:
Sizeable
Can be used to synchronize an IOGUIPane with another SimpleItemGUIPane
-
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
ConstructorsConstructorDescriptionSynchedGUIPane(GUI gui, Vector2d size, boolean autoSize, SimpleItemGUIPane targetPane) Creates a new SynchedGUIPaneSynchedGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, boolean autoSize, SimpleItemGUIPane targetPane) Creates a new SynchedGUIPaneSynchedGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, SimpleItemGUIPane targetPane) Creates a new SynchedGUIPane -
Method Summary
Modifier and TypeMethodDescriptionvoidonItemChange(Vector2d position) Called when an item changesMethods inherited from class de.placeblock.betterinventories.content.pane.impl.vanilla.IOGUIPane
onItemAdd, onItemAmount, onItemProvide, onItemRemoveMethods 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
-
SynchedGUIPane
Creates a new SynchedGUIPane- Parameters:
gui- The GUIsize- The sizeautoSize- Whether to autoSizetargetPane- The pane to keep in sync
-
SynchedGUIPane
Creates a new SynchedGUIPane- Parameters:
gui- The GUIminSize- The minSizemaxSize- The maxSizetargetPane- The pane to keep in sync
-
SynchedGUIPane
public SynchedGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, boolean autoSize, SimpleItemGUIPane targetPane) Creates a new SynchedGUIPane- Parameters:
gui- The GUIminSize- The minSizemaxSize- The maxSizetargetPane- The pane to keep in syncautoSize- Whether to autoSize
-
-
Method Details
-
onItemChange
Description copied from class:IOGUIPaneCalled when an item changes- Specified by:
onItemChangein classIOGUIPane- Parameters:
position- The position of the item that changed
-