Class UpdateContextImpl
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.context.AbstractViewContext
tech.guilhermekaua.spigotboot.inventoryapi.internal.context.UpdateContextImpl
- All Implemented Interfaces:
UpdateContext,ViewContext,StateBackedContext
Context for
View.onUpdate: a plain context carrying the trigger of the pass.-
Constructor Summary
ConstructorsConstructorDescriptionUpdateContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine, @NotNull UpdateTrigger trigger) Creates the context for one update pass. -
Method Summary
Modifier and TypeMethodDescription@NotNull UpdateTriggertrigger()Returns what triggered this update pass.Methods inherited from class tech.guilhermekaua.spigotboot.inventoryapi.internal.context.AbstractViewContext
arguments, close, config, contextActive, engine, inventory, isActive, openView, openView, owner, player, playerId, plugin, session, stateStore, update, updateTitle, view
-
Constructor Details
-
UpdateContextImpl
public UpdateContextImpl(@NotNull @NotNull ViewSession session, @NotNull @NotNull ViewEngine engine, @NotNull @NotNull UpdateTrigger trigger) Creates the context for one update pass.- Parameters:
session- the session being updatedengine- the engine executing the updatetrigger- the cause of this pass
-
-
Method Details
-
trigger
Description copied from interface:UpdateContextReturns what triggered this update pass.- Specified by:
triggerin interfaceUpdateContext- Returns:
- the update trigger
-