Bootstrap API
Bootstrap API
Section titled “Bootstrap API”Reference
DaisyPlatform is the single bootstrap surface for DaisyCore runtime services.
val daisy = DaisyPlatform.create(plugin) { text() placeholders() items() scoreboards() tablists() commands() menus() }text object Installs the shared text rendering layer used across commands and UI.
placeholders object Installs the shared placeholder registry and resolver layer.
items object Enables the shared item builder layer for menu and inventory UI.
commands object Enables command discovery, validation, and registration.
scoreboards object Creates the sidebar runtime service for keyed scoreboard sessions.
tablists object Creates the tablist runtime service for header and footer rendering.
Stable contract
Section titled “Stable contract”DaisyPlatform.create(plugin) { ... }is the canonical DaisyCore bootstrap API- enable only the subsystems your plugin actually uses
- keep the resulting platform handle for the full plugin lifetime
- call
close()duringonDisable() - treat
tablists()as header/footer rendering only in0.1.0
Shutdown
Section titled “Shutdown”override fun onDisable() { daisy.close()}