promotional bannermobile promotional banner

ChosenLib

ChosenLib: a lightweight utility library for Fabric

File Details

chosenlib v1.3.0

  • R
  • Sep 1, 2025
  • 23.31 KB
  • 17
  • 1.21.1
  • Fabric

File Name

chosenlib-1.3.0.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:chosenlib-1336567:6952070"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

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())

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!