promotional bannermobile promotional banner

Lazr's Lib

A library containing many utilities for Lazr's Mods.
Back to Files

Lazr's Lib - 1.2.0 - Forge - 1.21.1

File namelazrslib-forge-1.21.1-1.2.0.jar
Uploaded
Aug 10, 2026
Downloads
5
Size
146.8 KB
Mod Loaders
Forge
File ID
8614267
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

Forge

implementation "curse.maven:lazrs-lib-1048285:8614267"

Learn more about Curse Maven

What's new

Added

  • Completely rewritten for multi loader, for compatible release on forge, neoforge, and fabric.
  • Added IPacketContext passed when handling LazrPacket.handleClientside(ctx) and LazrPacket.handleServerside(ctx)
  • Added TimeUtilities with commonly used functions for getting Unix timestamps and other time related utilities.
  • Added additional commonly used math functions to MathUtilities.
    • lerp(min, max, time)
    • lerp01(time)
  • Added additional component utility functions for converting components to/from json.
  • InteractableOverlay now receives ticks through the InteractableOverlay.tick() function.
  • Added some cube drawing functions in RenderUtilities
  • Added several alternates existing functions in FontUtilities to allow for using String and Component instead of List<Componet>
  • Added some entity utilities to EntityUtilities

Changed

  • Renamed ParameterizedLazrPacket to LazrPacket
  • Moved several text-related functions from ScreenUtilities to FontUtilies
  • Renamed BlitCoordinates to ScreenCoordinate
  • Moved lazrslib.client.font.ComponentUtilities to lazrslib.common.component.ComponentUtilities
  • Renamed lazrslib.client.ui.OnClickFunction to lazrslib.client.IOnClickFunction

Fixed

  • Fixed several typos in function and class names.

Removed

  • Removed ThreadsafeLazrPacket
  • Removed several redundant packet registering functions in LazrNetwork they've now been unified into register(packet, decoder)

This mod has no additional files