Interface GuiFunction
- All Known Implementing Classes:
ActionFunction
,AddComponentsFunction
,EditComponentFunction
,RemoveComponentFunction
public interface GuiFunction
Represents a function that can be called on a GUI context.
Created: 29.04.2023 Author: Tobias Madlberger (Tobias)
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull GuiFunction
anonymous
(BiConsumer<GuiEngineApi, GuiContext> method) void
call
(@NotNull GuiEngineApi api, @NotNull GuiContext context) Calls the GUI function with the specified API and context.@NotNull String
getType()
-
Method Details
-
anonymous
-
getType
-
call
Calls the GUI function with the specified API and context.- Parameters:
api
- The `GuiEngineApi` instance used to interact with the GUI engine.context
- The `GuiContext` instance representing the GUI context on which the function is called.
-