Class SimpleGUIBuilder

java.lang.Object
me.hsgamer.hscore.minecraft.gui.simple.SimpleGUIBuilder

public class SimpleGUIBuilder extends Object
The builder for SimpleButtonMap
  • Method Details

    • create

      @NotNull public static @NotNull SimpleGUIBuilder create(@NotNull @NotNull SimpleButtonMap simpleButtonMap)
      Create a new instance of this
      Parameters:
      simpleButtonMap - the button map
      Returns:
      a new builder
    • create

      @NotNull public static @NotNull SimpleGUIBuilder create()
      Create a new instance of this with an empty SimpleButtonMap
      Returns:
      a new builder
    • add

      @NotNull public @NotNull SimpleGUIBuilder add(@NotNull @NotNull Button button)
      Add the given button to the holder and increase slot by 1
      Parameters:
      button - the button to add
      Returns:
      this for builder chain
    • next

      @NotNull public @NotNull SimpleGUIBuilder next()
      Increase slot by 1
      Returns:
      this for builder chain
    • next

      @NotNull public @NotNull SimpleGUIBuilder next(int slot)
      Increase slot by the given slot size
      Parameters:
      slot - the slot to increase
      Returns:
      this for builder chain
    • get

      public SimpleButtonMap get()
      Build the SimpleButtonMap
      Returns:
      the SimpleButtonMap