public interface IFSlotRenderContext extends IFSlotContext, IFConfinedContext
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this slot from the current context.
|
java.lang.Object |
getResult() |
boolean |
hasChanged()
Checks if the item in this context has been changed.
|
boolean |
isCancelled() |
boolean |
isForceUpdate()
This is an internal inventory-framework API that should not be used from outside of
this library.
|
void |
setCancelled(boolean cancelled) |
void |
setChanged(boolean changed)
Marks this context as changed.
|
void |
setForceUpdate(boolean forceUpdate)
This is an internal inventory-framework API that should not be used from outside of
this library.
|
getContainer, getParent, getSlot, isOnEntityContainer, setSlotback, 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.lang.Object getResult()
boolean isCancelled()
void setCancelled(boolean cancelled)
@ApiStatus.Experimental void clear()
The slot will only be cleaned on the next update, so if you want it cleaned immediately
update the slot using IFContext.update().
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.Internal boolean hasChanged()
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
@ApiStatus.Internal void setChanged(boolean changed)
Improperly changing this property can cause unexpected side effects.
This is an internal inventory-framework API that should not be used from outside of this library. No compatibility guarantees are provided.
changed - If the context item was changed.@ApiStatus.Internal boolean isForceUpdate()
@ApiStatus.Internal void setForceUpdate(boolean forceUpdate)