Class ClickCallbackManager
java.lang.Object
net.minestom.server.adventure.ClickCallbackManager
- All Implemented Interfaces:
Tickable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeCustomClick(Player player, ClientCustomClickActionPacket packet) Consumes a custom click event.createClickEvent(ClickCallback<Audience> callback, ClickCallback.Options options) Creates a click event from the given callback and options.voidtick(long time) Ticks this element.
-
Constructor Details
-
ClickCallbackManager
public ClickCallbackManager()
-
-
Method Details
-
tick
-
consumeCustomClick
Consumes a custom click event.- Parameters:
player- the player who performed the clickpacket- the packet
-
createClickEvent
Creates a click event from the given callback and options.- Parameters:
callback- the callbackoptions- the options- Returns:
- the click event
-