Uses of Interface
io.github.toberocat.guiengine.function.GuiFunction
Packages that use GuiFunction
Package
Description
-
Uses of GuiFunction in io.github.toberocat.guiengine.components
Fields in io.github.toberocat.guiengine.components with type parameters of type GuiFunctionModifier and TypeFieldDescriptionprotected final @NotNull List<GuiFunction>
AbstractGuiComponent.clickFunctions
The functions that will get called once a component has been clickedprotected @NotNull List<GuiFunction>
AbstractGuiComponentBuilder.clickFunctions
protected final @NotNull List<GuiFunction>
AbstractGuiComponent.closeFunctions
The functions that will get called when a component's gui gets closedprotected @NotNull List<GuiFunction>
AbstractGuiComponentBuilder.closeFunctions
protected final @NotNull List<GuiFunction>
AbstractGuiComponent.dragFunctions
The functions that will get called once a component is part of a drag eventprotected @NotNull List<GuiFunction>
AbstractGuiComponentBuilder.dragFunctions
Methods in io.github.toberocat.guiengine.components that return types with arguments of type GuiFunctionModifier and TypeMethodDescription@NotNull List<GuiFunction>
AbstractGuiComponent.getClickFunctions()
Get the list of click functions for the GUI component.@NotNull List<GuiFunction>
AbstractGuiComponent.getCloseFunctions()
Get the list of close functions for the GUI component.@NotNull List<GuiFunction>
AbstractGuiComponent.getDragFunctions()
Get the list of drag functions for the GUI component.Method parameters in io.github.toberocat.guiengine.components with type arguments of type GuiFunctionModifier and TypeMethodDescriptionAbstractGuiComponentBuilder.setClickFunctions
(@NotNull List<GuiFunction> clickFunctions) Set the click functions for the GUI component.AbstractGuiComponentBuilder.setCloseFunctions
(@NotNull List<GuiFunction> closeFunctions) Set the close functions for the GUI component.AbstractGuiComponentBuilder.setDragFunctions
(@NotNull List<GuiFunction> dragFunctions) Set the drag functions for the GUI component.Constructor parameters in io.github.toberocat.guiengine.components with type arguments of type GuiFunctionModifierConstructorDescriptionprotected
AbstractGuiComponent
(int offsetX, int offsetY, int width, int height, @NotNull RenderPriority priority, @NotNull String id, @NotNull List<GuiFunction> clickFunctions, @NotNull List<GuiFunction> dragFunctions, @NotNull List<GuiFunction> closeFunctions, boolean hidden) Constructor for AbstractGuiComponent. -
Uses of GuiFunction in io.github.toberocat.guiengine.components.provided.embedded
Constructor parameters in io.github.toberocat.guiengine.components.provided.embedded with type arguments of type GuiFunctionModifierConstructorDescriptionEmbeddedGuiComponent
(int offsetX, int offsetY, int width, int height, @NotNull RenderPriority priority, @NotNull String id, @NotNull List<GuiFunction> clickFunctions, @NotNull List<GuiFunction> dragFunctions, @NotNull List<GuiFunction> closeFunctions, boolean hidden, @NotNull String targetGui, boolean copyAir, boolean interactions) Constructor for EmbeddedGuiComponent. -
Uses of GuiFunction in io.github.toberocat.guiengine.components.provided.item
Constructor parameters in io.github.toberocat.guiengine.components.provided.item with type arguments of type GuiFunctionModifierConstructorDescriptionSimpleItemComponent
(int offsetX, int offsetY, @NotNull RenderPriority priority, @NotNull String id, @NotNull List<GuiFunction> clickFunctions, @NotNull List<GuiFunction> dragFunctions, @NotNull List<GuiFunction> closeFunctions, @NotNull org.bukkit.inventory.ItemStack stack, boolean hidden) Constructor for SimpleItemComponent. -
Uses of GuiFunction in io.github.toberocat.guiengine.components.provided.paged
Constructor parameters in io.github.toberocat.guiengine.components.provided.paged with type arguments of type GuiFunctionModifierConstructorDescriptionPagedComponent
(int offsetX, int offsetY, int width, int height, @NotNull RenderPriority priority, @NotNull String id, @NotNull List<GuiFunction> clickFunctions, @NotNull List<GuiFunction> dragFunctions, @NotNull List<GuiFunction> closeFunctions, boolean hidden, @NotNull String targetGui, boolean copyAir, boolean interactions, @NotNull ParserContext parent, int[] pattern, int showingPage) Constructs a new PagedComponent instance with the specified parameters. -
Uses of GuiFunction in io.github.toberocat.guiengine.components.provided.toggle
Constructor parameters in io.github.toberocat.guiengine.components.provided.toggle with type arguments of type GuiFunctionModifierConstructorDescriptionToggleItemComponent
(int offsetX, int offsetY, int width, int height, @NotNull RenderPriority priority, @NotNull String id, @NotNull List<GuiFunction> clickFunctions, @NotNull List<GuiFunction> dragFunctions, @NotNull List<GuiFunction> closeFunctions, boolean hidden, ParserContext options, int selected) Constructs a ToggleItemComponent with the specified parameters. -
Uses of GuiFunction in io.github.toberocat.guiengine.function
Fields in io.github.toberocat.guiengine.function with type parameters of type GuiFunctionModifier and TypeFieldDescriptionstatic final Map<String,
Class<? extends GuiFunction>> FunctionProcessor.FUNCTIONS
Methods in io.github.toberocat.guiengine.function that return GuiFunctionModifier and TypeMethodDescriptionstatic @NotNull GuiFunction
GuiFunction.anonymous
(BiConsumer<GuiEngineApi, GuiContext> method) static @Nullable GuiFunction
FunctionProcessor.createFunction
(@NotNull com.fasterxml.jackson.databind.JsonNode node) Creates a GUI function from a JSON node.Method parameters in io.github.toberocat.guiengine.function with type arguments of type GuiFunctionModifier and TypeMethodDescriptionstatic void
FunctionProcessor.callFunctions
(@NotNull Collection<GuiFunction> functions, @NotNull GuiEngineApi api, @NotNull GuiContext context) Calls a collection of GUI functions with the specified API and context.static void
FunctionProcessor.registerFunction
(@NotNull String id, @NotNull Class<? extends GuiFunction> clazz) Registers a custom GUI function. -
Uses of GuiFunction in io.github.toberocat.guiengine.function.call
Classes in io.github.toberocat.guiengine.function.call that implement GuiFunctionModifier and TypeClassDescriptionfinal record
Custom GUI function to call an action when triggered.final record
Custom GUI function to add components to the GUI.final record
Custom GUI function to edit a component's attribute in the GUI.final record
Custom GUI function to remove a component from the GUI. -
Uses of GuiFunction in io.github.toberocat.guiengine.utils
Methods in io.github.toberocat.guiengine.utils that return types with arguments of type GuiFunctionModifier and TypeMethodDescription@NotNull Optional<List<GuiFunction>>
ParserContext.getFunctions
(@NotNull String field) Get an optional list of GuiFunction objects from the child node of the current node based on the specified field name.Method parameters in io.github.toberocat.guiengine.utils with type arguments of type GuiFunctionModifier and TypeMethodDescriptionvoid
GeneratorContext.writeFunctionField
(@NotNull String fieldName, @NotNull List<GuiFunction> functions)