Tags
Creators
Details
1.0.0
Compatibility
Required content
Changes
MenuKit: Containers 1.0.0
First release. The slot extension for MenuKit: custom container menus, per-slot state, slot-group regions, and contract verification.
Depends on MenuKit 1.0.0. MenuKit: Containers pulls in MenuKit through api, so a consumer only needs to declare MenuKit: Containers to get both.
What it includes
MenuKitScreenHandler, a container-menu handler built to work with MenuKit's panels.MenuKitHandledScreen, the screen-side companion that draws MenuKit panels and vanilla slots in one frame.- Per-slot state that the server owns and syncs to the client.
- Slot-group regions. Group slots into named regions and anchor MenuKit panels to them the same way you anchor to menu regions.
- Storage primitives.
Storage,KeyedStorage,PlayerStorage,EphemeralStorageandStorageAttachmentcover most container patterns. - Custom payloads for the slot-state protocol. The same pattern works for your own typed payloads.
- A contract-verification harness for slot and UI invariants.
Side support
Universal (environment: "*"), so it runs on both client and server.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:xQUBXV8I:UBWLZ7vT"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:xQUBXV8I:UBWLZ7vT"
}

