Package tk.airshipcraft.commonlib.gui
package tk.airshipcraft.commonlib.gui
The GUI package in tk.airshipcraft.commonlib
offers a robust framework for creating and managing
graphical user interfaces (GUIs) within a Minecraft server environment. It facilitates the development of interactive
and dynamic interfaces for server plugins, enhancing player experience on the server.
Subpackages:
events
: This subpackage contains classes dedicated to handling events related to GUI interactions, enabling responsive and interactive UI elements within the game.objects
: Comprises classes for specific GUI components, such as scoreboards (Sidebar), action bars (Bossbar), and player-specific displays (BelowName). These classes provide implementations for various standard and custom GUI elements.
Key Classes:
GuiBuilder
: Employs the builder pattern to facilitate the easy construction of GUIs. It allows for a fluent, chainable interface, making GUI creation straightforward and intuitive.UiDesigner
: An abstract class designed to serve as a foundational framework for UI design. It requires extension and customization for specific use cases, particularly in implementing interactive elements and click actions.GuiManager
: Manages the lifecycle and interactions of GUI instances, ensuring efficient handling and operation of multiple GUI elements within the server.Hologram
: An abstract class for creating and managing holograms, providing methods for hologram manipulation and interaction.
Usage:
The package is designed to be versatile and extensible, suitable for a range of applications from simple inventory interfaces to complex interactive displays. It provides both foundational structures (via UiDesigner) and quick-setup tools (via GuiBuilder) to cater to diverse GUI development needs.
- Since:
- 2023-11-20
- Version:
- 1.0.0
- Author:
- notzune
-
ClassesClassDescriptionA class to build and manage Graphical User Interfaces (GUIs) in Minecraft.Provides management for GUI interactions within the server.Represents a hologram created using an
ArmorStand
in Minecraft.A utility class designed for crafting and handling Graphical User Interfaces (GUIs) within Minecraft.