Class FirstRenderPhase
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.engine.phase.FirstRenderPhase
Second half of the open pipeline:
onFirstRender, component materialization,
initial paint, session registration, container show, activation and update-task start.
A throwing onFirstRender aborts the open with an OPEN_FAILED close hook
and registers nothing (spec ยง9). Constructed and invoked only by ViewEngine.-
Constructor Summary
ConstructorsConstructorDescriptionFirstRenderPhase(@NotNull ViewEngine engine, @NotNull SessionRegistry sessions, @NotNull SlotPainter painter) Creates the phase. -
Method Summary
Modifier and TypeMethodDescriptionvoidfirstRender(@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).
-
Constructor Details
-
FirstRenderPhase
public FirstRenderPhase(@NotNull @NotNull ViewEngine engine, @NotNull @NotNull SessionRegistry sessions, @NotNull @NotNull SlotPainter painter) Creates the phase.- Parameters:
engine- the owning enginesessions- the per-player session registrypainter- the slot painter used for the initial paint
-
-
Method Details
-
firstRender
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).- Parameters:
session- the session to render and activate
-