Class ClickAction


  • public class ClickAction
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ClickAction​(java.util.function.Consumer<org.bukkit.entity.Player> action, org.bukkit.event.inventory.ClickType type, org.bukkit.event.inventory.ClickType... types)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void act​(org.bukkit.entity.Player player)  
      boolean shouldAct​(org.bukkit.event.inventory.ClickType clickType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClickAction

        public ClickAction​(java.util.function.Consumer<org.bukkit.entity.Player> action,
                           org.bukkit.event.inventory.ClickType type,
                           org.bukkit.event.inventory.ClickType... types)
    • Method Detail

      • shouldAct

        public boolean shouldAct​(org.bukkit.event.inventory.ClickType clickType)
      • act

        public void act​(org.bukkit.entity.Player player)