Uses of Interface
me.agent.vgui.api.click.ClickContext
Packages that use ClickContext
Package
Description
Global observation hooks:
VGuiListener.Items shown in views:
ViewItem slot entries and the
cross-version ItemBuilder.-
Uses of ClickContext in me.agent.vgui.api
Methods in me.agent.vgui.api with parameters of type ClickContextModifier and TypeMethodDescriptiondefault voidView.onClick(ClickContext click) Called for every click inside the window (GUI half and player-inventory half).Method parameters in me.agent.vgui.api with type arguments of type ClickContextModifier and TypeMethodDescriptionViewBuilder.onClick(Consumer<ClickContext> onClick) Runs for every click (after any per-item handler). -
Uses of ClickContext in me.agent.vgui.api.event
Methods in me.agent.vgui.api.event with parameters of type ClickContextModifier and TypeMethodDescriptiondefault booleanVGuiListener.onClick(ClickContext click) Called before a click is dispatched to item and view handlers. -
Uses of ClickContext in me.agent.vgui.api.item
Methods in me.agent.vgui.api.item with parameters of type ClickContextModifier and TypeMethodDescriptionvoidViewItem.handle(ClickContext ctx) Runs the click handler, if any.Method parameters in me.agent.vgui.api.item with type arguments of type ClickContextModifier and TypeMethodDescriptionstatic ViewItemViewItem.clickable(com.github.retrooper.packetevents.protocol.item.ItemStack item, Consumer<ClickContext> onClick) An item that runsonClickwhen clicked.static ViewItemViewItem.clickable(ItemBuilder builder, Consumer<ClickContext> onClick) An item built from anItemBuilderthat runsonClickwhen clicked.ItemBuilder.onClick(Consumer<ClickContext> onClick) Shortcut forViewItem.clickable(build(), onClick).ViewItem.withClick(Consumer<ClickContext> onClick) A copy of this item with a different click handler (nullremoves it).