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 Details

    • anonymous

      @NotNull static @NotNull GuiFunction anonymous(BiConsumer<GuiEngineApi,GuiContext> method)
    • getType

      @NotNull @NotNull String getType()
    • call

      void call(@NotNull @NotNull GuiEngineApi api, @NotNull @NotNull GuiContext context)
      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.