Uses of Class
io.github.toberocat.guiengine.GuiEngineApi
Packages that use GuiEngineApi
Package
Description
-
Uses of GuiEngineApi in io.github.toberocat.guiengine
Fields in io.github.toberocat.guiengine with type parameters of type GuiEngineApiMethods in io.github.toberocat.guiengine that return GuiEngineApi -
Uses of GuiEngineApi in io.github.toberocat.guiengine.arguments
Methods in io.github.toberocat.guiengine.arguments that return GuiEngineApiModifier and TypeMethodDescriptionGuiEngineApiArgument.defaultValue
(@NotNull org.bukkit.entity.Player player) Constructors in io.github.toberocat.guiengine.arguments with parameters of type GuiEngineApi -
Uses of GuiEngineApi in io.github.toberocat.guiengine.components
Fields in io.github.toberocat.guiengine.components declared as GuiEngineApiModifier and TypeFieldDescriptionprotected @Nullable GuiEngineApi
AbstractGuiComponent.api
The api this component belongs toMethods in io.github.toberocat.guiengine.components with parameters of type GuiEngineApiModifier and TypeMethodDescriptionvoid
AbstractGuiComponent.setApi
(@NotNull GuiEngineApi api) void
GuiComponent.setApi
(@NotNull GuiEngineApi api) Set the GUI Engine API for the component. -
Uses of GuiEngineApi in io.github.toberocat.guiengine.context
Methods in io.github.toberocat.guiengine.context with parameters of type GuiEngineApiModifier and TypeMethodDescriptionvoid
GuiContext.add
(@NotNull GuiEngineApi api, @NotNull GuiComponent component) Adds a GUI component to this context.void
GuiContext.add
(@NotNull GuiEngineApi api, @NotNull XmlComponent component) Adds an XML component to this context.void
GuiContext.add
(@NotNull GuiEngineApi api, @NotNull XmlComponent @NotNull ... components) Adds multiple XML components to this context.void
GuiContext.editXmlComponentById
(@NotNull GuiEngineApi api, @NotNull String id, @NotNull Consumer<XmlComponent> editCallback) Edits an XML component by ID with the specified edit callback. -
Uses of GuiEngineApi in io.github.toberocat.guiengine.function
Methods in io.github.toberocat.guiengine.function with parameters of type GuiEngineApiModifier and TypeMethodDescriptionstatic @NotNull String
FunctionProcessor.applyFunctions
(@NotNull GuiEngineApi api, @NotNull GuiContext context, @NotNull String value) Applies to compute functions to the provided value, replacing placeholders with their computed values.void
GuiFunction.call
(@NotNull GuiEngineApi api, @NotNull GuiContext context) Calls the GUI function with the specified API and context.static 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.@NotNull String
ComputeFunction.compute
(@NotNull GuiEngineApi api, @NotNull GuiContext context, @NotNull String value) Computes the value of the provided placeholder.Method parameters in io.github.toberocat.guiengine.function with type arguments of type GuiEngineApiModifier and TypeMethodDescriptionstatic @NotNull GuiFunction
GuiFunction.anonymous
(BiConsumer<GuiEngineApi, GuiContext> method) -
Uses of GuiEngineApi in io.github.toberocat.guiengine.function.call
Methods in io.github.toberocat.guiengine.function.call with parameters of type GuiEngineApiModifier and TypeMethodDescriptionvoid
ActionFunction.call
(@NotNull GuiEngineApi api, @NotNull GuiContext context) Calls the specified action using the provided API and context.void
AddComponentsFunction.call
(@NotNull GuiEngineApi api, @NotNull GuiContext context) Calls the `addComponents` method using the provided API and context to add components to the GUI.void
EditComponentFunction.call
(@NotNull GuiEngineApi api, @NotNull GuiContext context) Calls the `editXmlComponentById` method using the provided API and context to edit a component's attribute in the GUI.void
RemoveComponentFunction.call
(@NotNull GuiEngineApi api, @NotNull GuiContext context) Calls the `removeById` method using the provided API and context to remove a component from the GUI. -
Uses of GuiEngineApi in io.github.toberocat.guiengine.function.compute
Methods in io.github.toberocat.guiengine.function.compute with parameters of type GuiEngineApiModifier and TypeMethodDescription@NotNull String
GuiComponentPropertyFunction.compute
(@NotNull GuiEngineApi api, @NotNull GuiContext context, @NotNull String value) Computes the value of the provided placeholder, which represents a attribute of a GUI component.@NotNull String
HasNotPermissionFunction.compute
(@NotNull GuiEngineApi api, @NotNull GuiContext context, @NotNull String value) Computes the result of the permission check using the provided API and context.@NotNull String
HasPermissionFunction.compute
(@NotNull GuiEngineApi api, @NotNull GuiContext context, @NotNull String value) Computes the result of the permission check using the provided API and context. -
Uses of GuiEngineApi in io.github.toberocat.guiengine.interpreter
Methods in io.github.toberocat.guiengine.interpreter with parameters of type GuiEngineApiModifier and TypeMethodDescription@NotNull GuiComponent
DefaultInterpreter.bindComponent
(@NotNull GuiComponent component, @NotNull GuiEngineApi api, @NotNull GuiContext context) Binds a GuiComponent to the provided GuiEngineApi and GuiContext, and adds actions from the context's local actions.@NotNull GuiComponent
GuiInterpreter.bindComponent
(@NotNull GuiComponent component, @NotNull GuiEngineApi api, @NotNull GuiContext context) Binds an existing GUI component to the specified GUI context.@NotNull XmlComponent
DefaultInterpreter.componentToXml
(@NotNull GuiEngineApi api, @NotNull GuiComponent component) Converts a GuiComponent to an XmlComponent using the provided GuiEngineApi.@NotNull XmlComponent
GuiInterpreter.componentToXml
(@NotNull GuiEngineApi api, @NotNull GuiComponent component) Converts a `GuiComponent` instance into its XML representation.@Nullable GuiComponent
DefaultInterpreter.createComponent
(@NotNull XmlComponent xmlComponent, @NotNull GuiEngineApi api, @NotNull GuiContext context) Creates a GuiComponent from the given XmlComponent and binds it to the provided GuiEngineApi and GuiContext.@Nullable GuiComponent
GuiInterpreter.createComponent
(@NotNull XmlComponent xmlComponent, @NotNull GuiEngineApi api, @NotNull GuiContext context) Creates a GUI component based on the provided XML component definition.@NotNull GuiContext
DefaultInterpreter.loadContent
(@NotNull GuiEngineApi api, @NotNull org.bukkit.entity.Player viewer, @NotNull XmlGui xmlGui) Loads the GUI content from the given XmlGui and creates a GuiContext with the associated components.@NotNull GuiContext
GuiInterpreter.loadContent
(@NotNull GuiEngineApi api, @NotNull org.bukkit.entity.Player viewer, @NotNull XmlGui xmlGui) Loads the content of a GUI based on the provided XML GUI definition and player viewer.@NotNull XmlComponent
DefaultInterpreter.xmlComponent
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull GuiEngineApi api) Converts a JsonNode to an XmlComponent using the provided GuiEngineApi.@NotNull XmlComponent
GuiInterpreter.xmlComponent
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull GuiEngineApi api) Converts a JSON node representing a GUI component into an `XmlComponent` instance. -
Uses of GuiEngineApi in io.github.toberocat.guiengine.utils
Methods in io.github.toberocat.guiengine.utils that return GuiEngineApiModifier and TypeMethodDescription@NotNull GuiEngineApi
ParserContext.api()
Returns the value of theapi
record component.Constructors in io.github.toberocat.guiengine.utils with parameters of type GuiEngineApiModifierConstructorDescriptionParserContext
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull GuiContext context, @NotNull GuiEngineApi api) Creates an instance of aParserContext
record class. -
Uses of GuiEngineApi in io.github.toberocat.guiengine.xml
Methods in io.github.toberocat.guiengine.xml with parameters of type GuiEngineApiModifier and TypeMethodDescriptionXmlComponent.objectFields
(@NotNull GuiEngineApi api, @NotNull Function<com.fasterxml.jackson.databind.JsonNode, com.fasterxml.jackson.databind.JsonNode> transformer) Convert the fields of this to a map of objects.