Links
Tags
Creators
Details
All versions
0.4.0-beta
Beta
Stashlight 0.4.0-beta+1.21.108 months ago 197
Compatibility
Minecraft: Java Edition
1.21.10
Platforms
Fabric
Quilt
Supported environments
Client-side
Changes
Performance improvements and optimizations for search screen rendering
Implement ItemGrid for improved performance in search results
- Introduced a new ItemGrid component to replace the ItemSlot for better performance.
- Enhanced SearchScreen to utilize ItemGrid, allowing for dynamic item display based on search results.
- Updated client tick handling to toggle the search screen more efficiently.
- Removed obsolete ItemSlot and QuantityLabel classes to streamline the codebase.
Improve sorting and searching mechanisms
- Updated AlphabeticalSort to use a searchKey for more efficient sorting.
- Enhanced DistanceSort by implementing a distance cache to optimize sorting performance.
- Modified IndexedItem to include a searchKey, derived from the item's hover name.
- Improved SearchScreen to debounce search input, reducing unnecessary refreshes and enhancing user experience.
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:2ANiKmkM:vtDh656r"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:2ANiKmkM:vtDh656r"
}

