java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.context.AbstractViewContext
tech.guilhermekaua.spigotboot.inventoryapi.internal.context.UpdateContextImpl
All Implemented Interfaces:
UpdateContext, ViewContext, StateBackedContext

@Internal public final class UpdateContextImpl extends AbstractViewContext implements UpdateContext
Context for View.onUpdate: a plain context carrying the trigger of the pass.
  • 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 updated
      engine - the engine executing the update
      trigger - the cause of this pass
  • Method Details

    • trigger

      @NotNull public @NotNull UpdateTrigger trigger()
      Description copied from interface: UpdateContext
      Returns what triggered this update pass.
      Specified by:
      trigger in interface UpdateContext
      Returns:
      the update trigger