UltiTools API

website·Indexed 30 days ago

https://dev.ultikits.com/zh/

Developer documentation and API reference for UltiTools, featuring guides on economy, cloud login, panel integration, and module load ordering. Includes detailed Java API documentation for versions 6.2.5 and 6.3.0-SNAPSHOT, covering declarative GUI engines, AOP, WebSocket handlers, and data store implementations.

Tokens
456.9K
Snippets
2.6K
Records
3.6K
Agent score
49%

What's inside UltiTools

  1. Overview of the CommandValidator interface

    The com.ultikits.ultitools.abstracts.command.validation.CommandValidator interface is part of a command validation framework that utilizes the Chain of Responsibility pattern. It is used within the com.ultikits.ultitools.abstracts.command framework to implement improved command handling architecture. Built-in implementations of this interface can be found in the com.ultikits.ultitools.abstracts.command.validation.validators package.
  2. Overview of the UltiTools GUI Architecture

    v6.2.1
    The GUI system is built on three core abstraction classes that extend Gui from the obliviate-invs library. These classes use the Template Method pattern, allowing developers to override specific methods to customize behavior while utilizing built-in functionality for toolbars and navigation.
  3. Overview of UltiTools-API All-In-One library packaging

    v6.2.2
    The UltiTools-API provides an 'All-In-One' package that bundles multiple commonly used libraries. This allows developers to utilize these libraries directly within their development workflow without needing to manage individual plugin sizes or installations.
  4. Overview of the com.ultikits.ultitools.abstracts.gui.declarative.core package hierarchy

    The com.ultikits.ultitools.abstracts.gui.declarative.core package provides the core building blocks for a declarative GUI system. It defines the relationship between Widgets, Elements, and RenderNodes, as well as state management and diffing mechanisms.

    Key Class Hierarchies:

    • Widget Hierarchy: The base Widget class is extended by RenderObjectWidget, StatefulWidget, and StatelessWidget.
    • Element Hierarchy: The base Element class is extended by RenderObjectElement and ComponentElement. ComponentElement is further specialized into StatefulElement and StatelessElement.
    • Diffing and Context: Includes DiffResult (with inner classes RenderNodeMove and RenderNodeUpdate) for calculating UI changes, and BuildContext for maintaining the tree state.
    • State and Utilities: Includes State<T> for managing component state, SlotKey for element identification, and VoidCallback for event handling.
  5. Overview of the com.ultikits.ultitools.abstracts.gui package

    The com.ultikits.ultitools.abstracts.gui package (introduced in version 6.2.0) provides a GUI framework based on the Template Method pattern to reduce code duplication and provide consistent structure for inventory pages. Key components include:

    • BaseInventoryPage: The base class for all inventory GUI pages.
    • BasePaginationPage: Extends inventory pages to support pagination.
    • BaseConfirmationPage: A base class for OK/Cancel dialogs, featuring a builder for rapid creation.
  6. Overview of UltiTools-API All-In-One library packaging

    v6.1.0
    The UltiTools-API provides an 'All-In-One' package that bundles multiple commonly used libraries. This allows developers to utilize these libraries directly within their development workflow without needing to manage individual dependencies or worry about the resulting plugin size.
  7. Overview of the Declarative GUI framework

    v6.2.0

    The Declarative GUI framework for Ultikits v6.2.0 replaces imperative Bukkit GUI development (manual Inventory/ItemStack management) with a reactive, component-based system. Key features include:

    • Declarative UI: Describe the UI state, and the framework handles updates.
    • Automatic Diff Updates: Only changed slots are updated, reducing network packets.
    • Reactive State: UI updates automatically when state changes.
    • Direct Event Handling: Click handlers are attached directly to widgets rather than using global listeners.
  8. Overview of the SecurityPolicy class

    The com.ultikits.ultitools.utils.SecurityPolicy class defines security rules and validation logic used by UltiTools during class loading and reflection operations. Its primary purpose is to prevent the execution of malicious code by blacklisting dangerous classes/packages and whitelisting trusted ones.