Uses of Interface
me.agent.vgui.api.context.ViewContext
Packages that use ViewContext
Package
Description
Click handling: the decoded
ClickType and the
ClickContext passed to handlers.Player text input via anvil windows:
AnvilInputView.-
Uses of ViewContext in me.agent.vgui.api
Methods in me.agent.vgui.api that return ViewContextModifier and TypeMethodDescriptionstatic ViewContextVGui.currentContext(com.velocitypowered.api.proxy.Player player) VGuiService.currentContext(com.velocitypowered.api.proxy.Player player) The player's current view context, ornull.Methods in me.agent.vgui.api with parameters of type ViewContextModifier and TypeMethodDescriptionvoidCloseHandler.onClose(com.velocitypowered.api.proxy.Player player, CloseReason reason, ViewContext context) Handles the close.default voidView.onClose(com.velocitypowered.api.proxy.Player player, CloseReason reason, ViewContext context) Called exactly once when the view stops being shown, with the reason and the per-open context.static voidVGui.open(com.velocitypowered.api.proxy.Player player, View view, ViewContext context) voidVGuiService.open(com.velocitypowered.api.proxy.Player player, View view, ViewContext context) Opens a view with a pre-populated context.voidVGuiService.openReplacing(com.velocitypowered.api.proxy.Player player, View view, ViewContext context) Opens a view without pushing history, with a pre-populated context.Method parameters in me.agent.vgui.api with type arguments of type ViewContextModifier and TypeMethodDescriptionstatic voidVGui.open(com.velocitypowered.api.proxy.Player player, View view, Consumer<ViewContext> contextBuilder) voidVGuiService.open(com.velocitypowered.api.proxy.Player player, View view, Consumer<ViewContext> contextBuilder) Opens a view, configuring a fresh context first. -
Uses of ViewContext in me.agent.vgui.api.click
Methods in me.agent.vgui.api.click that return ViewContext -
Uses of ViewContext in me.agent.vgui.api.contents
Methods in me.agent.vgui.api.contents that return ViewContextModifier and TypeMethodDescriptionViewContents.context()The per-open key/value context (survives view switches via history). -
Uses of ViewContext in me.agent.vgui.api.input
Methods in me.agent.vgui.api.input with parameters of type ViewContextModifier and TypeMethodDescriptionvoidAnvilInputView.onClose(com.velocitypowered.api.proxy.Player player, CloseReason reason, ViewContext context) -
Uses of ViewContext in me.agent.vgui.core.internal
Classes in me.agent.vgui.core.internal that implement ViewContextMethods in me.agent.vgui.core.internal that return ViewContextModifier and TypeMethodDescriptionDefaultViewContents.context()ViewSession.context()VGuiServiceImpl.currentContext(com.velocitypowered.api.proxy.Player player) Methods in me.agent.vgui.core.internal with parameters of type ViewContextModifier and TypeMethodDescriptionvoidSessionManager.open(com.velocitypowered.api.proxy.Player player, View view, ViewContext context, boolean pushHistory) Opens a view.voidVGuiServiceImpl.open(com.velocitypowered.api.proxy.Player player, View view, ViewContext context) voidVGuiServiceImpl.openReplacing(com.velocitypowered.api.proxy.Player player, View view, ViewContext context) Method parameters in me.agent.vgui.core.internal with type arguments of type ViewContextModifier and TypeMethodDescriptionvoidVGuiServiceImpl.open(com.velocitypowered.api.proxy.Player player, View view, Consumer<ViewContext> contextBuilder)