Class AsyncGUIPane<T>
java.lang.Object
de.placeblock.betterinventories.content.GUISection
de.placeblock.betterinventories.content.pane.GUIPane
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane<GUISection,S>
de.placeblock.betterinventories.content.pane.impl.async.BaseAsyncGUIPane<T,AsyncGUIPane<T>>
de.placeblock.betterinventories.content.pane.impl.async.AsyncGUIPane<T>
- Type Parameters:
T- The type of the completable future
- All Implemented Interfaces:
Sizeable
Inventory that shows a loading item while a completable future is running
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.async.BaseAsyncGUIPane
BaseAsyncGUIPane.AbstractBuilder<B extends BaseAsyncGUIPane.AbstractBuilder<B,P, T>, P extends BaseAsyncGUIPane<T, P>, T> Nested classes/interfaces inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
BaseSimpleGUIPane.ChildData<C extends GUISection> -
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
ConstructorsModifierConstructorDescriptionprotectedAsyncGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, boolean autoSize, CompletableFuture<T> task, @Nullable Consumer<T> onComplete, GUIItem loadingGUIItem) Creates a new BaseSimpleGUIPane -
Method Summary
Methods inherited from class de.placeblock.betterinventories.content.pane.impl.async.BaseAsyncGUIPane
onTaskCompleteMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane
addItemEmptySlot, clear, fill, getChildren, getNextEmptySlot, getSections, onItemProvide, removeSection, removeSection, render, search, setSection, setSectionAt, setSectionAt, updateSize, updateSizeRecursiveMethods inherited from class de.placeblock.betterinventories.content.pane.GUIPane
onItemAdd, onItemAmount, onItemClick, onItemRemove, onItemRemoveTroughInventoryClose, onSizeChange, provideItem, renderOnList, setHeight, setSize, setWidth, updateChildrenRecursiveMethods inherited from class de.placeblock.betterinventories.content.GUISection
getEmptyContentList, getHeight, getSlots, getWidth, 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
-
AsyncGUIPane
protected AsyncGUIPane(GUI gui, Vector2d minSize, Vector2d maxSize, boolean autoSize, CompletableFuture<T> task, @Nullable @Nullable Consumer<T> onComplete, GUIItem loadingGUIItem) Creates a new BaseSimpleGUIPane- 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.task- The running taskonComplete- The callback that is executed when the task finishesloadingGUIItem- The item that is shown while the task is running
-