public interface IFConfinedContext extends IFContext
Viewer of a IFSlotClickContext is launched.| Modifier and Type | Method and Description |
|---|---|
void |
back()
Goes back to the previous view, does nothing if there's no views to back to.
|
void |
back(java.lang.Object initialData)
Goes back to the previous view, does nothing if there's no views to back to.
|
boolean |
canBack()
Verifies if there's any view to
back to. |
void |
closeForPlayer()
Closes this context's container for the player in the current scope of execution.
|
Viewer |
getViewer()
The viewer in current scope of execution.
|
void |
openForPlayer(@NotNull java.lang.Class<? extends RootView> other)
Opens a new view only for the player that is in the current scope of execution.
|
void |
openForPlayer(@NotNull java.lang.Class<? extends RootView> other,
java.lang.Object initialData)
Opens a new view only for the player that is in the current scope of execution with an
initially defined data.
|
void |
resetTitleForPlayer()
Resets the container title only for the player current scope of execution to the initially
defined title.
|
void |
updateTitleForPlayer(@NotNull java.lang.String title)
Updates the container title only for the player current scope of execution.
|
addComponent, 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, getInternalComponentsViewer getViewer()
Viewer in the current scope of execution.void closeForPlayer()
void openForPlayer(@NotNull
@NotNull java.lang.Class<? extends RootView> other)
This context will be immediately invalidated if there are no viewers left after opening.
other - The view to be opened.void openForPlayer(@NotNull
@NotNull java.lang.Class<? extends RootView> other,
java.lang.Object initialData)
This context will be immediately invalidated if there are no viewers left after opening.
other - The view to be opened.initialData - The initial context data.void updateTitleForPlayer(@NotNull
@NotNull java.lang.String title)
This should not be used before the container is opened, if you need to set the __initial
title__ use IFOpenContext.modifyConfig() on open handler instead.
This method is version dependant, so it may be that your server version is not yet supported, if you try to use this method and fail (can fail silently), report it to the library developers to add support to your version.
title - The new container title.void resetTitleForPlayer()
updateTitleForPlayer(String) to take effect.@ApiStatus.Experimental void back()
Only works if, from the previous view, the current view was opened using
openForEveryone
or openForPlayer.
This API is experimental and is not subject to the general compatibility guarantees such API may be changed or may be removed completely in any further release.
@ApiStatus.Experimental void back(java.lang.Object initialData)
Only works if, from the previous view, the current view was opened using
openForEveryone
or openForPlayer.
This API is experimental and is not subject to the general compatibility guarantees such API may be changed or may be removed completely in any further release.
initialData - The initial data.@ApiStatus.Experimental boolean canBack()
back to.
This API is experimental and is not subject to the general compatibility guarantees such API may be changed or may be removed completely in any further release.
back()