All Implemented Interfaces:
Sizeable

public class BackGUIButton extends SwitchGUIButton
A GUIButton which returns back to an GUI. Material is set to Material.RED_STAINED_GLASS_PANE
  • Constructor Details

    • BackGUIButton

      protected BackGUIButton(GUI gui, int cooldown, org.bukkit.Sound sound, String permission, Function<org.bukkit.entity.Player,GUI> targetGUI, net.kyori.adventure.text.TextComponent title)
      Creates a new BackGUIButton
      Parameters:
      gui - The GUI
      targetGUI - The GUI to be opened on click
      title - The title of the Button
      cooldown - The cooldown of the Button. Applied to the material, not the Button alone.
      sound - The sound that is played when pressing that button
      permission - The permission required to press this button