Uses of Interface
me.agent.vgui.api.contents.ViewContents
Packages that use ViewContents
Package
Description
Click handling: the decoded
ClickType and the
ClickContext passed to handlers.Global observation hooks:
VGuiListener.Player text input via anvil windows:
AnvilInputView.-
Uses of ViewContents in me.agent.vgui.api
Methods in me.agent.vgui.api that return ViewContentsModifier and TypeMethodDescriptionstatic ViewContentsVGui.currentContents(com.velocitypowered.api.proxy.Player player) VGuiService.currentContents(com.velocitypowered.api.proxy.Player player) The live contents of the player's open view, ornull.Methods in me.agent.vgui.api with parameters of type ViewContentsModifier and TypeMethodDescriptiondefault voidView.onAnvilInput(String text, ViewContents contents) Called when the player types in an anvil rename field (only forViewType.ANVILviews), once per keystroke with the full current text.voidChestView.onOpen(ViewContents contents) default voidView.onOpen(ViewContents contents) Called right after the window opens (and again if the view is re-opened via back-navigation).Method parameters in me.agent.vgui.api with type arguments of type ViewContentsModifier and TypeMethodDescriptionViewBuilder.onAnvilInput(BiConsumer<String, ViewContents> onAnvilInput) Runs on anvil rename input (only forViewType.ANVILviews).ViewBuilder.onOpen(Consumer<ViewContents> onOpen) Runs after the layout and items are applied when the view opens for a player.ViewBuilder.updateEvery(Duration interval, Consumer<ViewContents> task) Registers a repeating update task started when the view opens and cancelled when it closes. -
Uses of ViewContents in me.agent.vgui.api.click
Methods in me.agent.vgui.api.click that return ViewContents -
Uses of ViewContents in me.agent.vgui.api.contents
Method parameters in me.agent.vgui.api.contents with type arguments of type ViewContentsModifier and TypeMethodDescriptionvoidViewContents.batch(Consumer<ViewContents> mutations) Runs bulk mutations without sending per-slot packets, then pushes one full refresh at the end.ViewContents.schedule(Duration interval, Consumer<ViewContents> task) Schedules a repeating task on the proxy scheduler, cancelled automatically when this view closes or the player switches views. -
Uses of ViewContents in me.agent.vgui.api.event
Methods in me.agent.vgui.api.event with parameters of type ViewContentsModifier and TypeMethodDescriptiondefault voidVGuiListener.onOpen(com.velocitypowered.api.proxy.Player player, View view, ViewContents contents) Called after a view opened for a player. -
Uses of ViewContents in me.agent.vgui.api.input
Methods in me.agent.vgui.api.input with parameters of type ViewContentsModifier and TypeMethodDescriptionvoidAnvilInputView.onAnvilInput(String text, ViewContents contents) voidAnvilInputView.onOpen(ViewContents contents) Method parameters in me.agent.vgui.api.input with type arguments of type ViewContentsModifier and TypeMethodDescriptionAnvilInputView.Builder.onType(BiConsumer<String, ViewContents> onType) Called on every keystroke with the full current text. -
Uses of ViewContents in me.agent.vgui.core.internal
Classes in me.agent.vgui.core.internal that implement ViewContentsMethods in me.agent.vgui.core.internal that return ViewContentsModifier and TypeMethodDescriptionVGuiServiceImpl.currentContents(com.velocitypowered.api.proxy.Player player) Method parameters in me.agent.vgui.core.internal with type arguments of type ViewContentsModifier and TypeMethodDescriptionvoidDefaultViewContents.batch(Consumer<ViewContents> mutations) DefaultViewContents.schedule(Duration interval, Consumer<ViewContents> task)