Class EmptyButton

java.lang.Object
net.staticstudios.menus.button.EmptyButton
All Implemented Interfaces:
Button

public class EmptyButton extends Object implements Button
  • Constructor Details

    • EmptyButton

      public EmptyButton()
  • Method Details

    • getItemRepresentation

      @Nullable public org.bukkit.inventory.ItemStack getItemRepresentation(MenuViewer viewer, Menu menu)
      Description copied from interface: Button
      Get the item representation of the button. This is the item that will be displayed in the menu.
      Specified by:
      getItemRepresentation in interface Button
      Parameters:
      viewer - the viewer
      menu - the menu
      Returns:
      the item stack
    • invokeActions

      public void invokeActions(@NotNull @NotNull Button.Action action, @NotNull @NotNull Menu menu, @NotNull @NotNull MenuViewer viewer)
      Description copied from interface: Button
      Invoke the actions of the button
      Specified by:
      invokeActions in interface Button
      Parameters:
      action - the action (type)
      menu - the menu
      viewer - the viewer