Class ClickCallbackManager

java.lang.Object
net.minestom.server.adventure.ClickCallbackManager
All Implemented Interfaces:
Tickable

public final class ClickCallbackManager extends Object implements Tickable
Manager for Adventure click callbacks.
  • Constructor Details

    • ClickCallbackManager

      public ClickCallbackManager()
  • Method Details

    • tick

      public void tick(long time)
      Description copied from interface: Tickable
      Ticks this element.
      Specified by:
      tick in interface Tickable
      Parameters:
      time - the time of the tick in milliseconds
    • consumeCustomClick

      public void consumeCustomClick(Player player, ClientCustomClickActionPacket packet)
      Consumes a custom click event.
      Parameters:
      player - the player who performed the click
      packet - the packet
    • createClickEvent

      public ClickEvent createClickEvent(ClickCallback<Audience> callback, ClickCallback.Options options)
      Creates a click event from the given callback and options.
      Parameters:
      callback - the callback
      options - the options
      Returns:
      the click event