Class TemplateClick<T>

Type Parameters:
T - the template context type

public class TemplateClick<T> extends ItemClick
Stores contextual data for template clicks.
  • Constructor Details

    • TemplateClick

      public TemplateClick(Slate slate, org.bukkit.entity.Player player, org.bukkit.event.inventory.InventoryClickEvent event, org.bukkit.inventory.ItemStack item, SlotPos pos, ActiveMenu menu, T value)
  • Method Details

    • value

      public T value()
      Gets the context value corresponding to the instance of the template that was clicked.
      Returns:
      the context value