Class BaseAsyncGUIPane.AbstractBuilder<B extends BaseAsyncGUIPane.AbstractBuilder<B,P,T>,P extends BaseAsyncGUIPane<T,P>,T>
java.lang.Object
de.placeblock.betterinventories.Builder<B,P>
de.placeblock.betterinventories.content.GUISection.AbstractBuilder<B,P>
de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane.AbstractBuilder<B,P,GUISection>
de.placeblock.betterinventories.content.pane.impl.async.BaseAsyncGUIPane.AbstractBuilder<B,P,T>
- Type Parameters:
B- The Builder that implements this oneP- The BaseAsyncSimpleGUIPane that is builtT- The result of the task
- Direct Known Subclasses:
AsyncGUIPane.Builder
- Enclosing class:
- BaseAsyncGUIPane<T,
S extends BaseAsyncGUIPane<T, S>>
public abstract static class BaseAsyncGUIPane.AbstractBuilder<B extends BaseAsyncGUIPane.AbstractBuilder<B,P,T>,P extends BaseAsyncGUIPane<T,P>,T>
extends BaseSimpleGUIPane.AbstractBuilder<B,P,GUISection>
Builder for creating
BaseAsyncGUIPane-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBuilder(GUI gui, CompletableFuture<T> task) Creates a new Builder -
Method Summary
Modifier and TypeMethodDescriptionloadingItem(GUIItem loadingGUIItem) Sets the loading item that is shown while the task is runningonComplete(Consumer<T> onComplete) Sets the onComplete parameterMethods inherited from class de.placeblock.betterinventories.content.pane.impl.simple.BaseSimpleGUIPane.AbstractBuilder
autoSize, isAutoSizeMethods inherited from class de.placeblock.betterinventories.content.GUISection.AbstractBuilder
adoptMinMax, getMaxSize, getMinSize, maxSize, maxSize, minSize, minSize, size, size
-
Constructor Details
-
AbstractBuilder
Creates a new Builder- Parameters:
gui- The gui this Pane belongs totask- The running task
-
-
Method Details
-
onComplete
Sets the onComplete parameter- Parameters:
onComplete- Callback that is executed when the task completes- Returns:
- this
-
loadingItem
Sets the loading item that is shown while the task is running- Parameters:
loadingGUIItem- The item- Returns:
- this
-