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

      public BackGUIButton(GUI gui, Supplier<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
    • BackGUIButton

      public BackGUIButton(GUI gui, Supplier<GUI> targetGUI)
      Creates a new BackGUIButton
      Parameters:
      gui - The GUI
      targetGUI - The GUI to be opened on click