Uses of Interface
tech.guilhermekaua.spigotboot.inventoryapi.component.ItemComponentBuilder
Packages that use ItemComponentBuilder
Package
Description
-
Uses of ItemComponentBuilder in tech.guilhermekaua.spigotboot.inventoryapi.component
Methods in tech.guilhermekaua.spigotboot.inventoryapi.component that return ItemComponentBuilderModifier and TypeMethodDescription@NotNull ItemComponentBuilderItemComponentBuilder.cancelOnClick(boolean cancel) Overrides the config-level click cancellation for this component's slots; handlers may still overturn the decision viaSlotClickContext.setCancelled(boolean).@NotNull ItemComponentBuilderItemComponentBuilder.closeOnClick()Closes the view after a click on this component; deferred to the end of the tick.@NotNull ItemComponentBuilderItemComponentBuilder.displayIf(@NotNull Predicate<ViewContext> condition) Shows this component only while the condition holds; a hidden component's slots are cleared and it receives no clicks.@NotNull ItemComponentBuilderItemComponentBuilder.item(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> renderer) Sets a dynamic item renderer, re-evaluated on every re-render of this component.@NotNull ItemComponentBuilderItemComponentBuilder.item(@NotNull org.bukkit.inventory.ItemStack item) Sets a static item for this component.@NotNull ItemComponentBuilderItemComponentBuilder.onClick(@NotNull Consumer<SlotClickContext> handler) Sets the untyped click handler; it runs only when no per-ClickTypehandler matched the click.@NotNull ItemComponentBuilderItemComponentBuilder.onClick(@NotNull org.bukkit.event.inventory.ClickType type, @NotNull Consumer<SlotClickContext> handler) Sets the handler for one specific click type; it takes precedence over the untyped handler.@NotNull ItemComponentBuilderItemComponentBuilder.openOnClick(@NotNull Class<? extends View> target) Navigates to another registered view after a click on this component; deferred to the end of the tick.@NotNull ItemComponentBuilderItemComponentBuilder.openOnClick(@NotNull Class<? extends View> target, @NotNull ViewArguments arguments) Same asopenOnClick(Class), passing arguments to the target view.@NotNull ItemComponentBuilderItemComponentBuilder.updateOnStateChange(@NotNull StateToken... tokens) Re-renders this component whenever one of the given tokens changes, at most once per flush. -
Uses of ItemComponentBuilder in tech.guilhermekaua.spigotboot.inventoryapi.context
Methods in tech.guilhermekaua.spigotboot.inventoryapi.context that return ItemComponentBuilderModifier and TypeMethodDescription@NotNull ItemComponentBuilderRenderContext.layoutSlot(char character) Starts one component applied to every slot bound to the given layout character.@NotNull ItemComponentBuilderRenderContext.layoutSlot(char character, @NotNull org.bukkit.inventory.ItemStack item) Starts a layout-character component with a static item already set.@NotNull ItemComponentBuilderRenderContext.slot(int slot) Starts a component bound to a single slot.@NotNull ItemComponentBuilderRenderContext.slot(int row, int column) Starts a component bound to a single slot addressed by grid position.@NotNull ItemComponentBuilderRenderContext.slot(int slot, @NotNull org.bukkit.inventory.ItemStack item) Starts a single-slot component with a static item already set. -
Uses of ItemComponentBuilder in tech.guilhermekaua.spigotboot.inventoryapi.internal.component
Classes in tech.guilhermekaua.spigotboot.inventoryapi.internal.component that implement ItemComponentBuilderModifier and TypeClassDescriptionfinal classMutable collector behindItemComponentBuilder; gathers a component declaration and materializes it into an immutableComponentInstancebound to fixed slots.Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.component that return ItemComponentBuilderModifier and TypeMethodDescription@NotNull ItemComponentBuilderItemComponentBuilderImpl.cancelOnClick(boolean cancel) @NotNull ItemComponentBuilderItemComponentBuilderImpl.closeOnClick()@NotNull ItemComponentBuilderItemComponentBuilderImpl.displayIf(@NotNull Predicate<ViewContext> condition) @NotNull ItemComponentBuilderItemComponentBuilderImpl.item(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> renderer) @NotNull ItemComponentBuilderItemComponentBuilderImpl.item(@NotNull org.bukkit.inventory.ItemStack item) @NotNull ItemComponentBuilderItemComponentBuilderImpl.onClick(@NotNull Consumer<SlotClickContext> handler) @NotNull ItemComponentBuilderItemComponentBuilderImpl.onClick(@NotNull org.bukkit.event.inventory.ClickType type, @NotNull Consumer<SlotClickContext> handler) @NotNull ItemComponentBuilderItemComponentBuilderImpl.openOnClick(@NotNull Class<? extends View> target) @NotNull ItemComponentBuilderItemComponentBuilderImpl.openOnClick(@NotNull Class<? extends View> target, @NotNull ViewArguments arguments) @NotNull ItemComponentBuilderItemComponentBuilderImpl.updateOnStateChange(@NotNull StateToken... tokens) -
Uses of ItemComponentBuilder in tech.guilhermekaua.spigotboot.inventoryapi.internal.context
Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.context that return ItemComponentBuilderModifier and TypeMethodDescription@NotNull ItemComponentBuilderRenderContextImpl.layoutSlot(char character) @NotNull ItemComponentBuilderRenderContextImpl.layoutSlot(char character, @NotNull org.bukkit.inventory.ItemStack item) @NotNull ItemComponentBuilderRenderContextImpl.slot(int slot) @NotNull ItemComponentBuilderRenderContextImpl.slot(int row, int column) @NotNull ItemComponentBuilderRenderContextImpl.slot(int slot, @NotNull org.bukkit.inventory.ItemStack item) -
Uses of ItemComponentBuilder in tech.guilhermekaua.spigotboot.inventoryapi.pagination
Methods in tech.guilhermekaua.spigotboot.inventoryapi.pagination with parameters of type ItemComponentBuilderModifier and TypeMethodDescriptionvoidPaginationItemRenderer.render(@NotNull ViewContext context, @NotNull ItemComponentBuilder item, int index, T value) Renders one page element.