public interface IFOpenContext extends IFConfinedContext
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
getAsyncOpenJob()
The task that will run before this context transitions from opening to rendering context.
|
ViewContainer |
getContainer()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
ViewConfig |
getModifiedConfig()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
boolean |
isCancelled()
Whether opening the container to the viewer has been cancelled.
|
@NotNull ViewConfigBuilder |
modifyConfig()
Allows access and change the current configuration specifically to that context.
|
void |
setCancelled(boolean cancelled)
Cancels the opening of this context's container to the viewer.
|
void |
setContainer(ViewContainer container)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
waitUntil(@NotNull java.util.concurrent.CompletableFuture<java.lang.Void> task)
Waits for a task to run before ending this opening context and transitioning to the rendering
context.
|
back, back, canBack, closeForPlayer, getViewer, openForPlayer, openForPlayer, resetTitleForPlayer, updateTitleForPlayeraddComponent, addViewer, closeForEveryone, getComponentsAt, getConfig, getId, getIndexedViewers, getInitialData, getInitialTitle, getRoot, getViewers, isActive, isShared, openForEveryone, openForEveryone, removeComponent, removeViewer, renderComponent, resetTitleForEveryone, setActive, setInitialData, update, updateComponent, updateTitleForEveryonegetInternalStateValue, getRawStateValue, getStateValues, getUninitializedStateValue, initializeState, updateState, watchStategetComponents, getInternalComponents@ApiStatus.Internal java.util.concurrent.CompletableFuture<java.lang.Void> getAsyncOpenJob()
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
void waitUntil(@NotNull
@NotNull java.util.concurrent.CompletableFuture<java.lang.Void> task)
This transition represents the opening of this context's container to the player viewing it.
task - The task that will be waited for.boolean isCancelled()
true the container will not be displayed to the player.void setCancelled(boolean cancelled)
cancelled - If true, the container will not open for the player.@NotNull @NotNull ViewConfigBuilder modifyConfig()
By default, all contexts inherit their root configuration but context configuration always takes precedence over root.
@ApiStatus.Internal ViewConfig getModifiedConfig()
@ApiStatus.Internal ViewContainer getContainer()
@ApiStatus.Internal void setContainer(ViewContainer container)