Package dev.turboism.sdk.cubism.mesh
Interface MeshToolRegistry
- All Superinterfaces:
AutoCloseable
Plugin-generation-scoped registry for native mesh-toolbar contributions.
Registration requires capability cubism.mesh.custom-tools and permission
turboism.ui.toolbar.mesh.contribute. Returned registrations revoke only their exact
contribution generation and are idempotent.
Preview API: this contract may evolve before stabilization.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Revokes every tool and slider still owned by this registry.contributeSlider(MeshToolbarSlider slider) Contributes one integer control to the native mesh toolbar.Registers one custom mesh tool for this plugin generation.
-
Method Details
-
register
Registers one custom mesh tool for this plugin generation.- Parameters:
tool- SDK-only tool contribution- Returns:
- idempotent exact-generation revocation
-
contributeSlider
Contributes one integer control to the native mesh toolbar.- Parameters:
slider- SDK-only slider contribution- Returns:
- idempotent exact-generation revocation
-
close
void close()Revokes every tool and slider still owned by this registry.- Specified by:
closein interfaceAutoCloseable
-