RedZone Lib

Quick rating

Community listing page, reviews here may not be monitored by the author.

RedZone Lib

No reviews yet

RedZone Lib is a lightweight library mod that features amazing stuff useful for your development purposes.

Mod Loaders
Minecraft

About

Description

RedZone Lib

RedZone Lib is currently in its early versions. Some features may be glitched, but i've tested everything and it seems to work just fine.

Current Features

MathUtils: Provides fundamental math functions for game development, including:

    • lerp(): For smooth animations, transitions, and value changes.

    • clamp(): To ensure a number stays within a minimum and maximum value.

ColorUtils: Contains a hexToInt() method to seamlessly convert standard web color codes (like #FF5733) into the integer format Minecraft uses for rendering text and other elements.

TextureUtils: A powerful utility for runtime texture manipulation, featuring:

    • createImage(): To generate a new, blank NativeImage.

    • registerDynamicTexture(): To take a NativeImage created in code and register it with Minecraft's texture manager, making it usable in GUIs.

AbstractWidget System: The foundation of the GUI library. It's a base class that handles visibility, position, hover detection, and click events, allowing developers to easily create their own custom components.

CustomButton Widget: A ready-to-use implementation of AbstractWidget. It's a button that can be rendered using custom textures for its normal and hovered states.

WidgetFactory: A simple factory class that streamlines the creation of widgets, starting with createTexturedButton().

Access the documentation here