Archived version v7.0.0. This page describes a past release and will not receive further updates.

View this page in v7.1.0 →

Skip to content

GUI Interface ​

UltiTools-API 7.0 removes the 6.x imperative chest pages without a compatibility bridge and no longer bundles obliviate-invs. Use the replacements below and rebuild your module against 7.0. For 6.x classes and examples, see the archived v6.5.0 guide.

Replacements in 7.0 v7.0.0+ ​

Removed in 7.0Use insteadDocumented in
BaseInventoryPageDeclarativeGui: return a tree of Container, TextButton and ItemDisplay from build(BuildContext)Declarative GUI
BasePaginationPageKeep the page number in a State, build the visible slice with GridView, and turn pages with setStateDeclarative GUI
BaseConfirmationPage, Confirm.gui(...)Confirm of the UI service (com.ultikits.ultitools.ui.Confirm), shown with UiService#showUI: Intents and Sessions
Confirm.chat(...) (ChatConfirm)None in the framework; the module sends its own clickable chat promptUI: Intents and Sessions
Buttons, ViewTypeNo replacement type; use a TextButton label or the framework label keysDialog buttons
obliviate-invs, UniversalSchedulerNo longer bundled; see Legacy chest pages and confirmation widgets

Colors ​

The com.ultikits.ultitools.entities.Colors enum still selects glass pane colors for buttons and decorations. The framework's built-in GUI glass colors and button materials are unchanged.

v7.0.0 color API change

Colors#getCode() and XVersionUtils are removed. Use Colors#getGlassPaneMaterial() to get a Bukkit Material, or use Material.CYAN_STAINED_GLASS_PANE directly.

java
ItemStack glass = new ItemStack(Colors.CYAN.getGlassPaneMaterial());

See Native item and sound APIs in 7.0 for the full migration.

Contributors

The avatar of contributor named as Ling Bao Ling Bao
The avatar of contributor named as Codex (gpt-6.2-sol) Codex (gpt-6.2-sol)

Released under the MIT License.