Class SimpleGUIBuilder
java.lang.Object
me.hsgamer.hscore.minecraft.gui.simple.SimpleGUIBuilder
The builder for
SimpleButtonMap
-
Method Summary
Modifier and TypeMethodDescription@NotNull SimpleGUIBuilder
Add the given button to the holder and increaseslot
by 1static @NotNull SimpleGUIBuilder
create()
Create a new instance ofthis
with an emptySimpleButtonMap
static @NotNull SimpleGUIBuilder
create
(@NotNull SimpleButtonMap simpleButtonMap) Create a new instance ofthis
get()
Build theSimpleButtonMap
@NotNull SimpleGUIBuilder
next()
Increaseslot
by 1@NotNull SimpleGUIBuilder
next
(int slot) Increaseslot
by the given slot size
-
Method Details
-
create
@NotNull public static @NotNull SimpleGUIBuilder create(@NotNull @NotNull SimpleButtonMap simpleButtonMap) Create a new instance ofthis
- Parameters:
simpleButtonMap
- the button map- Returns:
- a new builder
-
create
Create a new instance ofthis
with an emptySimpleButtonMap
- Returns:
- a new builder
-
add
Add the given button to the holder and increaseslot
by 1- Parameters:
button
- the button to add- Returns:
this
for builder chain
-
next
Increaseslot
by 1- Returns:
this
for builder chain
-
next
Increaseslot
by the given slot size- Parameters:
slot
- the slot to increase- Returns:
this
for builder chain
-
get
Build theSimpleButtonMap
- Returns:
- the
SimpleButtonMap
-