Class SpigotPaginatedMenuBuilder
java.lang.Object
com.guflimc.brick.gui.api.builder.PaginatedMenuBuilder<SpigotMenuItem>
com.guflimc.brick.gui.spigot.builder.SpigotPaginatedMenuBuilder
- All Implemented Interfaces:
ISpigotPaginatedMenuBuilder
public class SpigotPaginatedMenuBuilder
extends PaginatedMenuBuilder<SpigotMenuItem>
implements ISpigotPaginatedMenuBuilder
-
Field Summary
Fields inherited from class com.guflimc.brick.gui.api.builder.PaginatedMenuBuilder
hotbar, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withBackItem
(@NotNull org.bukkit.inventory.ItemStack itemStack) withBackItemName
(@NotNull String text) withBackItemName
(@NotNull net.kyori.adventure.text.Component text) 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) withItems
(int size, @NotNull Function<Integer, SpigotMenuItem> supplier) withNextItem
(@NotNull org.bukkit.inventory.ItemStack itemStack) withNextItemName
(@NotNull String text) withNextItemName
(@NotNull net.kyori.adventure.text.Component text) withTitle
(@NotNull net.kyori.adventure.text.Component title) Methods inherited from class com.guflimc.brick.gui.api.builder.PaginatedMenuBuilder
compile, withHotbarItem
-
Constructor Details
-
Method Details
-
withItems
public SpigotPaginatedMenuBuilder withItems(int size, @NotNull @NotNull Function<Integer, SpigotMenuItem> supplier) - Specified by:
withItems
in interfaceISpigotPaginatedMenuBuilder
- Overrides:
withItems
in classPaginatedMenuBuilder<SpigotMenuItem>
-
withTitle
- Specified by:
withTitle
in interfaceISpigotPaginatedMenuBuilder
-
withTitle
- Specified by:
withTitle
in interfaceISpigotPaginatedMenuBuilder
-
withTitle
public ISpigotPaginatedMenuBuilder withTitle(@NotNull @NotNull net.kyori.adventure.text.Component title) - Specified by:
withTitle
in interfaceISpigotPaginatedMenuBuilder
-
withBackItem
public SpigotPaginatedMenuBuilder withBackItem(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) - Specified by:
withBackItem
in interfaceISpigotPaginatedMenuBuilder
-
withBackItemName
public SpigotPaginatedMenuBuilder withBackItemName(@NotNull @NotNull net.kyori.adventure.text.Component text) - Specified by:
withBackItemName
in interfaceISpigotPaginatedMenuBuilder
-
withBackItemName
- Specified by:
withBackItemName
in interfaceISpigotPaginatedMenuBuilder
-
withNextItem
public SpigotPaginatedMenuBuilder withNextItem(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) - Specified by:
withNextItem
in interfaceISpigotPaginatedMenuBuilder
-
withNextItemName
public SpigotPaginatedMenuBuilder withNextItemName(@NotNull @NotNull net.kyori.adventure.text.Component text) - Specified by:
withNextItemName
in interfaceISpigotPaginatedMenuBuilder
-
withNextItemName
- Specified by:
withNextItemName
in interfaceISpigotPaginatedMenuBuilder
-
withHotbarItem
public SpigotPaginatedMenuBuilder withHotbarItem(int index, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull Consumer<org.bukkit.event.inventory.InventoryClickEvent> consumer) - Specified by:
withHotbarItem
in interfaceISpigotPaginatedMenuBuilder
-
withHotbarItem
public SpigotPaginatedMenuBuilder withHotbarItem(int index, @NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull Function<org.bukkit.event.inventory.InventoryClickEvent, Boolean> consumer) - Specified by:
withHotbarItem
in interfaceISpigotPaginatedMenuBuilder
-
build
- Specified by:
build
in interfaceISpigotPaginatedMenuBuilder
-