Uses of Class
io.github.toberocat.guiengine.context.GuiContext
Packages that use GuiContext
Package
Description
-
Uses of GuiContext in io.github.toberocat.guiengine
Fields in io.github.toberocat.guiengine with type parameters of type GuiContextModifier and TypeFieldDescriptionstatic final @NotNull Map<UUID,
GuiContext> GuiEngineApi.LOADED_CONTEXTS
Methods in io.github.toberocat.guiengine that return GuiContextModifier and TypeMethodDescription@NotNull GuiContext
Opens a GUI with the specified ID for the given player, using the default placeholders.@NotNull GuiContext
GuiEngineApi.openGui
(@NotNull org.bukkit.entity.Player player, @NotNull String guiId, @NotNull Map<String, String> placeholders) Opens a GUI with the specified ID for the given player, using the provided placeholders. -
Uses of GuiContext in io.github.toberocat.guiengine.components
Fields in io.github.toberocat.guiengine.components declared as GuiContextModifier and TypeFieldDescriptionprotected @Nullable GuiContext
AbstractGuiComponent.context
The context this component owns toMethods in io.github.toberocat.guiengine.components with parameters of type GuiContextModifier and TypeMethodDescriptionvoid
ContextContainer.addContext
(GuiContext context) void
AbstractGuiComponent.setContext
(@NotNull GuiContext context) void
GuiComponent.setContext
(@NotNull GuiContext context) Set the GUI context for the component. -
Uses of GuiContext in io.github.toberocat.guiengine.components.provided.embedded
Fields in io.github.toberocat.guiengine.components.provided.embedded declared as GuiContext -
Uses of GuiContext in io.github.toberocat.guiengine.components.provided.paged
Methods in io.github.toberocat.guiengine.components.provided.paged with parameters of type GuiContextModifier and TypeMethodDescriptionvoid
PagedComponent.addContext
(GuiContext context) void
PagedComponent.addPage
(@NotNull GuiContext page) Adds a new page to the paged component.void
PagedComponent.addPage
(@NotNull GuiContext page, int position) Adds a new page to the paged component at the specified position. -
Uses of GuiContext in io.github.toberocat.guiengine.context
Methods in io.github.toberocat.guiengine.context that return GuiContextModifier and TypeMethodDescription@NotNull GuiContext
GuiContext.getContext()
Returns the current `GuiContext`. -
Uses of GuiContext in io.github.toberocat.guiengine.event
Methods in io.github.toberocat.guiengine.event that return GuiContextModifier and TypeMethodDescription@NotNull GuiContext
GuiEventListener.getContext()
Gets the associated `GuiContext` for the listener. -
Uses of GuiContext in io.github.toberocat.guiengine.event.spigot
Methods in io.github.toberocat.guiengine.event.spigot that return GuiContextModifier and TypeMethodDescription@NotNull GuiContext
GuiEngineEvent.getContext()
Gets the `GuiContext` associated with this GUI engine event.Constructors in io.github.toberocat.guiengine.event.spigot with parameters of type GuiContextModifierConstructorDescriptionGuiCloseEvent
(@NotNull GuiContext context, @NotNull org.bukkit.event.inventory.InventoryCloseEvent closeEvent) Constructs a new `GuiCloseEvent` with the associated `GuiContext` and the inventory close event.GuiComponentClickEvent
(@NotNull GuiContext context, @NotNull org.bukkit.event.inventory.InventoryClickEvent clickEvent, @Nullable GuiComponent targetComponent) Constructs a new `GuiComponentClickEvent` with the associated `GuiContext`, click event, and target component (if any).GuiComponentDragEvent
(@NotNull GuiContext context, @NotNull org.bukkit.event.inventory.InventoryDragEvent dragEvent, @Nullable GuiComponent targetComponent) Constructs a new `GuiComponentDragEvent` with the associated `GuiContext`, drag event, and target component (if any).GuiEngineEvent
(@NotNull GuiContext context) Constructs a new `GuiEngineEvent` with the associated `GuiContext`. -
Uses of GuiContext in io.github.toberocat.guiengine.function
Methods in io.github.toberocat.guiengine.function with parameters of type GuiContextModifier 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 GuiContextModifier and TypeMethodDescriptionstatic @NotNull GuiFunction
GuiFunction.anonymous
(BiConsumer<GuiEngineApi, GuiContext> method) -
Uses of GuiContext in io.github.toberocat.guiengine.function.call
Methods in io.github.toberocat.guiengine.function.call with parameters of type GuiContextModifier 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 GuiContext in io.github.toberocat.guiengine.function.compute
Methods in io.github.toberocat.guiengine.function.compute with parameters of type GuiContextModifier 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 GuiContext in io.github.toberocat.guiengine.interpreter
Methods in io.github.toberocat.guiengine.interpreter that return GuiContextModifier and TypeMethodDescription@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.Methods in io.github.toberocat.guiengine.interpreter with parameters of type GuiContextModifier 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.@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. -
Uses of GuiContext in io.github.toberocat.guiengine.render
Methods in io.github.toberocat.guiengine.render with parameters of type GuiContextModifier and TypeMethodDescriptiondefault @NotNull org.bukkit.inventory.Inventory
GuiRenderEngine.createInventory
(@NotNull GuiContext context, @NotNull org.bukkit.entity.Player viewer, @NotNull Map<String, String> placeholders) Creates an inventory representing the GUI using the provided GuiContext and placeholders.void
DefaultGuiRenderEngine.renderGui
(@NotNull org.bukkit.inventory.ItemStack[][] renderBuffer, @NotNull GuiContext context, @NotNull org.bukkit.entity.Player viewer) Renders the GUI using the provided render buffer, GuiContext, and Player viewer.void
GuiRenderEngine.renderGui
(@NotNull org.bukkit.inventory.ItemStack[][] renderBuffer, @NotNull GuiContext context, @NotNull org.bukkit.entity.Player viewer) Renders the GUI using the provided render buffer, GuiContext, and Player viewer.default void
GuiRenderEngine.showGui
(@NotNull GuiContext content, @NotNull org.bukkit.entity.Player viewer, @NotNull Map<String, String> placeholders) Shows the GUI to the specified player using the provided GuiContext and placeholders. -
Uses of GuiContext in io.github.toberocat.guiengine.utils
Methods in io.github.toberocat.guiengine.utils that return GuiContextModifier and TypeMethodDescription@NotNull GuiContext
ParserContext.context()
Returns the value of thecontext
record component.Constructors in io.github.toberocat.guiengine.utils with parameters of type GuiContextModifierConstructorDescriptionParserContext
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull GuiContext context, @NotNull GuiEngineApi api) Creates an instance of aParserContext
record class. -
Uses of GuiContext in io.github.toberocat.guiengine.view
Methods in io.github.toberocat.guiengine.view that return GuiContextModifier and TypeMethodDescription@NotNull GuiContext
GuiView.context()
Returns the value of thecontext
record component.Constructors in io.github.toberocat.guiengine.view with parameters of type GuiContextModifierConstructorDescriptionGuiView
(@NotNull org.bukkit.inventory.Inventory inventory, @NotNull GuiContext context) Creates an instance of aGuiView
record class.