Class SimpleGUIBuilder
java.lang.Object
me.hsgamer.hscore.minecraft.gui.map.simple.SimpleGUIBuilder
The builder for
SimpleButtonMap-
Method Summary
Modifier and TypeMethodDescription@NotNull SimpleGUIBuilderadd(@NotNull Function<@NotNull InventoryContext, @Nullable ActionItem> button) Add the given button to the holder and increaseslotby 1static @NotNull SimpleGUIBuildercreate()Create a new instance ofthiswith an emptySimpleButtonMapstatic @NotNull SimpleGUIBuildercreate(@NotNull SimpleButtonMap simpleButtonMap) Create a new instance ofthisget()Build theSimpleButtonMap@NotNull SimpleGUIBuildernext()Increaseslotby 1@NotNull SimpleGUIBuildernext(int slot) Increaseslotby 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 ofthiswith an emptySimpleButtonMap- Returns:
- a new builder
-
add
@NotNull public @NotNull SimpleGUIBuilder add(@NotNull @NotNull Function<@NotNull InventoryContext, @Nullable ActionItem> button) Add the given button to the holder and increaseslotby 1- Parameters:
button- the button to add- Returns:
thisfor builder chain
-
next
Increaseslotby 1- Returns:
thisfor builder chain
-
next
Increaseslotby the given slot size- Parameters:
slot- the slot to increase- Returns:
thisfor builder chain
-
get
Build theSimpleButtonMap- Returns:
- the
SimpleButtonMap
-