Class SpigotMenuBuilder
java.lang.Object
com.guflimc.brick.gui.api.builder.MenuBuilder<SpigotMenuItem>
com.guflimc.brick.gui.spigot.builder.SpigotMenuBuilder
- All Implemented Interfaces:
ISpigotMenuBuilder
-
Field Summary
Fields inherited from class com.guflimc.brick.gui.api.builder.MenuBuilder
hotbar, items, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withHotbarItem
(int index, @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> consumer) withHotbarItem
(int index, @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull Function<org.bukkit.event.inventory.InventoryClickEvent, Boolean> consumer) withItem
(@NotNull org.bukkit.inventory.ItemStack itemStack) withItem
(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> consumer) withItem
(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull Function<org.bukkit.event.inventory.InventoryClickEvent, Boolean> consumer) final SpigotMenuBuilder
withTitle
(@NotNull net.kyori.adventure.text.Component title) Methods inherited from class com.guflimc.brick.gui.api.builder.MenuBuilder
compile, withHotbarItem, withItem, withItems, withItems
-
Constructor Details
-
Method Details
-
withTitle
- Specified by:
withTitle
in interfaceISpigotMenuBuilder
-
withTitle
public final SpigotMenuBuilder withTitle(@NotNull @NotNull net.kyori.adventure.text.Component title) - Specified by:
withTitle
in interfaceISpigotMenuBuilder
-
withItem
- Specified by:
withItem
in interfaceISpigotMenuBuilder
-
withItem
public SpigotMenuBuilder withItem(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> consumer) - Specified by:
withItem
in interfaceISpigotMenuBuilder
-
withItem
public SpigotMenuBuilder withItem(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull Function<org.bukkit.event.inventory.InventoryClickEvent, Boolean> consumer) - Specified by:
withItem
in interfaceISpigotMenuBuilder
-
withHotbarItem
public SpigotMenuBuilder withHotbarItem(int index, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> consumer) - Specified by:
withHotbarItem
in interfaceISpigotMenuBuilder
-
withHotbarItem
public SpigotMenuBuilder withHotbarItem(int index, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull Function<org.bukkit.event.inventory.InventoryClickEvent, Boolean> consumer) - Specified by:
withHotbarItem
in interfaceISpigotMenuBuilder
-
build
- Specified by:
build
in interfaceISpigotMenuBuilder
-