ChosenLib

ChosenLib

Mod

ChosenLib: a lightweight utility library for Fabric

Client or server Library

33 downloads
0 followers
Follow Save

ChosenLib v1.3.0

Changelog

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!

Dependencies

Files

chosenlib-1.3.0.jar(23.31 KiB) Primary Download

Project members

urmoit

Owner

Details

Licensed MIT
Published 5 days ago
Updated 5 days ago