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.0 | Use instead | Documented in |
|---|---|---|
BaseInventoryPage | DeclarativeGui: return a tree of Container, TextButton and ItemDisplay from build(BuildContext) | Declarative GUI |
BasePaginationPage | Keep the page number in a State, build the visible slice with GridView, and turn pages with setState | Declarative GUI |
BaseConfirmationPage, Confirm.gui(...) | Confirm of the UI service (com.ultikits.ultitools.ui.Confirm), shown with UiService#show | UI: Intents and Sessions |
Confirm.chat(...) (ChatConfirm) | None in the framework; the module sends its own clickable chat prompt | UI: Intents and Sessions |
Buttons, ViewType | No replacement type; use a TextButton label or the framework label keys | Dialog buttons |
| obliviate-invs, UniversalScheduler | No 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.
ItemStack glass = new ItemStack(Colors.CYAN.getGlassPaneMaterial());See Native item and sound APIs in 7.0 for the full migration.