Tags
Creators
Details
All versions
1.3.0
Release
ChosenLib v1.3.0last year 35
Compatibility
Minecraft: Java Edition
1.21.1
Platform
Fabric
Supported environments
Client-side
Server-side
Required content
Any compatible version
Changes
ChosenLib v1.3.0 – Changelog
New in this release
Major Utility Additions
- GuiUtils - Client-side GUI utility class for Minecraft modding:
- Screen positioning helpers (
centerX(),centerY()) - Color utilities (
rgba(),rgb(),withAlpha(),hsvToRgb()) - Drawing helpers (
drawRect(),drawBorderedRect(),drawGradient()) - Texture rendering (
drawTexture()) - Hit testing (
isPointInRect()) - Progress bars (
drawProgressBar()) - Color manipulation (
adjustBrightness())
- Screen positioning helpers (
Enhanced TextUtils
- Text manipulation:
truncate(),toTitleCase(),reverse(),isPalindrome() - Text validation:
isAlphanumeric(),isValidEmail(),removeSpecialChars() - Text analysis:
wordCount(),centerText(),createTextBox() - Visual elements:
progressBar()- Create text-based progress bars - Advanced formatting:
combine(),stripFormatting(),format()with multiple options - Clickable links:
clickable()- Create clickable chat text with URLs
ItemUtils - Item Management
- Item validation:
isEmpty(),isNotEmpty(),isSameItem(),isExactMatch() - Item information:
getItemId(),getDisplayName(),getMaxStackSize() - Durability utilities:
getDurability(),isDamaged(),getDamagePercentage() - Item manipulation:
copyWithCount(),isStackable()
General
- Internal version updated to 1.3.0.
- All utility classes are fully documented with JavaDoc.
- Improved code organization and structure.
- Fixed API compatibility issues for Minecraft 1.21.1.
- Proper client/server separation with GuiUtils in client source set.
No breaking changes. This release adds comprehensive GUI, text, and item utilities for enhanced mod development!
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:UgEg5PFW:fAqL0KOC"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:UgEg5PFW:fAqL0KOC"
}

