Interface GuiClickHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GuiClickHandler
Handler de click pour un slot d'un AbstractInventoryGui. Le clic dans l'inventaire d'un GUI CR-Core est toujours annulé par le GuiListener avant invocation du handler — le slot reste inchangé, c'est au handler de modifier l'état interne du GUI puis d'appeler rebuild() si besoin.

Le InventoryClickEvent.getClick() distingue clic gauche / droit / shift / etc. — utile pour les boutons d'incrément (gauche = +1, shift+gauche = +10, droit = -1).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClick(org.bukkit.event.inventory.InventoryClickEvent event)
     
  • Method Details

    • onClick

      void onClick(org.bukkit.event.inventory.InventoryClickEvent event)