Uses of Class
tech.guilhermekaua.spigotboot.inventoryapi.internal.session.ViewSession
Packages that use ViewSession
Package
Description
-
Uses of ViewSession in tech.guilhermekaua.spigotboot.inventoryapi.internal.context
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.context that return ViewSessionModifier and TypeMethodDescription@NotNull ViewSessionAbstractViewContext.session()Returns the session this context is bound to.Constructors in tech.guilhermekaua.spigotboot.inventoryapi.internal.context with parameters of type ViewSessionModifierConstructorDescriptionprotectedAbstractViewContext(@NotNull ViewSession session, @NotNull ViewEngine engine) Binds the context to one session and the engine.CloseContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine, @NotNull CloseReason reason) Creates the context for one teardown.OpenContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine) Creates the context for one open attempt.PlainViewContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine) Creates the context for a live session.RenderContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine) Creates the context for one first render.SlotClickContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine, @NotNull org.bukkit.event.inventory.InventoryClickEvent event, boolean playerInventory, boolean preCancelled) Creates the context for one intercepted click.UpdateContextImpl(@NotNull ViewSession session, @NotNull ViewEngine engine, @NotNull UpdateTrigger trigger) Creates the context for one update pass. -
Uses of ViewSession in tech.guilhermekaua.spigotboot.inventoryapi.internal.engine
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.engine with parameters of type ViewSessionModifier and TypeMethodDescriptionvoidViewEngine.bukkitClose(@NotNull ViewSession session, @NotNull org.bukkit.event.inventory.InventoryCloseEvent event) Handles a Bukkit close event for a session, guarded by container identity: a close event for a previous container (fired synchronously while opening a new view) must not tear down the session of the view that is being opened.voidViewEngine.click(@NotNull ViewSession session, @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Routes a Bukkit click event into the session per the click policy.voidViewEngine.close(@NotNull ViewSession session, @NotNull CloseReason reason) Closes a session with the given reason; idempotent on already closed sessions.voidViewEngine.defer(@NotNull ViewSession session, @NotNull Runnable op) Defers an operation to the end of the current tick.voidViewEngine.drag(@NotNull ViewSession session, @NotNull org.bukkit.event.inventory.InventoryDragEvent event) Applies the drag policy of a session: whencancelOnDragis enabled, any drag touching the top container is cancelled (mirrors the 2.x listener behavior).voidViewEngine.flushDirty(@NotNull ViewSession session) Flushes dirty state tokens of a session: each pass drains the dirty set and runs a STATE_CHANGE update over the watchers; passes repeat while handlers re-dirty tokens, capped at 8 cascades per flush, after which the remaining dirty tokens are dropped with a WARNING.voidViewEngine.paginationSettle(@NotNull ViewSession session, int tokenId) Runs a pagination-settle update pass scoped to the settled token, then flushes any state the handlers dirtied.voidViewEngine.update(@NotNull ViewSession session, @NotNull UpdateTrigger trigger) Runs an update pass on a session, then flushes any state the handlers dirtied.voidViewEngine.updateTitle(@NotNull ViewSession session, @NotNull String title) Updates the container title of a session in place: placeholders are applied for the session's player when the effective config enables them, then legacy&color codes are translated, and the result is handed to theTitleUpdater. -
Uses of ViewSession in tech.guilhermekaua.spigotboot.inventoryapi.internal.engine.phase
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.engine.phase that return ViewSessionModifier and TypeMethodDescription@Nullable ViewSessionOpenPhase.openSession(@NotNull org.bukkit.entity.Player player, @NotNull RegisteredView registered, @NotNull ViewArguments arguments) Opens a session up to (and including) container creation; first render and registration happen inFirstRenderPhase.Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.engine.phase with parameters of type ViewSessionModifier and TypeMethodDescriptionvoidClosePhase.close(@NotNull ViewSession session, @NotNull CloseReason reason) Closes a session with the given reason; closing an already closed session is a no-op.voidFirstRenderPhase.firstRender(@NotNull ViewSession session) Renders and shows a freshly opened session produced byOpenPhase.openSession(org.bukkit.entity.Player, tech.guilhermekaua.spigotboot.inventoryapi.internal.registry.RegisteredView, tech.guilhermekaua.spigotboot.inventoryapi.service.ViewArguments).booleanPaginationInitPhase.init(@NotNull ViewSession session) Initializes every pagination binding of the session.voidClickRoutingPhase.route(@NotNull ViewSession session, @NotNull org.bukkit.event.inventory.InventoryClickEvent event) Routes a Bukkit click event into the session per the click policy.voidUpdatePhase.update(@NotNull ViewSession session, @NotNull UpdateTrigger trigger, @Nullable Set<Integer> dirtyOrNull) Runs one update pass on a session. -
Uses of ViewSession in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination with parameters of type ViewSessionModifier and TypeMethodDescriptionstatic @Nullable ComponentInstancePaginationBindings.componentAt(@NotNull ViewSession session, int slot) Looks up the pagination element component currently occupying a slot.static @NotNull List<PaginationBinding>PaginationBindings.of(@NotNull ViewSession session) Returns the pagination bindings of a session in token-declaration order.Constructors in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination with parameters of type ViewSessionModifierConstructorDescriptionPaginationBinding(@NotNull PaginationSpec<?> spec, int tokenId, @NotNull ViewSession session, @NotNull ViewEngine engine) Creates the binding for one pagination token of one session. -
Uses of ViewSession in tech.guilhermekaua.spigotboot.inventoryapi.internal.schedule
Constructors in tech.guilhermekaua.spigotboot.inventoryapi.internal.schedule with parameters of type ViewSessionModifierConstructorDescriptionViewUpdateTask(@NotNull ViewEngine engine, @NotNull ViewSession session) Creates the task for one session. -
Uses of ViewSession in tech.guilhermekaua.spigotboot.inventoryapi.internal.session
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.session that return types with arguments of type ViewSessionModifier and TypeMethodDescription@NotNull Collection<ViewSession>SessionRegistry.all()Returns every registered session.@NotNull Optional<ViewSession>Looks up the session of a player.Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.session with parameters of type ViewSessionModifier and TypeMethodDescriptionvoidSessionRegistry.register(@NotNull ViewSession session) Registers a session under its player's UUID, replacing any previous mapping.voidSessionRegistry.unregister(@NotNull ViewSession session) Removes a session's mapping.