Package io.github.toberocat.guiengine
Class GuiEngineApiPlugin
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
io.github.toberocat.guiengine.GuiEngineApiPlugin
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class GuiEngineApiPlugin
extends org.bukkit.plugin.java.JavaPlugin
This class represents the main plugin class for the GuiEngineApi plugin.
It extends JavaPlugin and acts as the entry point for the plugin's functionality.
The plugin provides a graphical user interface (GUI) engine for creating and managing custom GUIs in Minecraft.
It supports various components like SimpleItemComponent, EmbeddedGuiComponent, ToggleItemComponent, and PagedComponent.
Additionally, it allows the registration of functions and actions for GUI interactions.
The plugin is licensed under the GNU GENERAL PUBLIC LICENSE.
For usage and documentation, refer to the README or the official documentation of the GuiEngineApi.
- Since:
- 04/02/2023
- Author:
- Tobias Madlberger (Tobias)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
The current version of this plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the item manager@NotNull DefaultGuiViewManager
Gets the manager responsible for managing GUI views.@NotNull InterpreterManager
Gets the manager responsible for handling GUI interpreters.static @NotNull GuiEngineApiPlugin
Returns the singleton instance of the GuiEngineApiPlugin.void
onEnable()
Called when the plugin is enabled.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onDisable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Field Details
-
LATEST_VERSION
public static boolean LATEST_VERSIONThe current version of this plugin
-
-
Constructor Details
-
GuiEngineApiPlugin
public GuiEngineApiPlugin()
-
-
Method Details
-
onEnable
public void onEnable()Called when the plugin is enabled. Initializes the plugin and registers necessary components, functions, actions, and commands. Creates and initializes the manager instances for GUI views and interpreters. Registers default shared factories for supported GUI components. Register default functions for GUI interactions, such as adding, editing, or removing components. Register default compute functions for evaluating GUI component properties and permissions. Adds a default API instance for handling GUI data. Register default actions for GUI interactions.- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
getPlugin
Returns the singleton instance of the GuiEngineApiPlugin.- Returns:
- The GuiEngineApiPlugin instance.
-
getInterpreterManager
Gets the manager responsible for handling GUI interpreters.- Returns:
- The InterpreterManager instance.
-
getGuiViewManager
Gets the manager responsible for managing GUI views.- Returns:
- The DefaultGuiViewManager instance.
-
getGuiItemManager
Gets the item manager- Returns:
- The GuiItem Manager
-
getGuiApi
-