
A library containing utilities for Lazr's Mods.
Like my mods? Support my work:
Features:
- Screen Drawing Utilities
- Overlay Utilitiesa
- NBT Utilities
- API for interactable overlays and screens.
- Simple Networking Solution
Feel free to join our discord!
How to Install Lazr's Lib (Mod)
Lazr's Lib by LazrProductions is verified for Fabric, Forge, Neoforge across Minecraft versions 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3 (latest release: 1.2.1, file size: 148 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3) and platform (Fabric, Forge, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge.
- Move the downloaded Lazr's Lib file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Completely rewritten for multi loader, for compatible release on forge, neoforge, and fabric.
- Added
IPacketContextpassed when handling `LazrPacket.handleClientside(ctx)andLazrPacket.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 theInteractableOverlay.tick()function. - Added some cube drawing functions in RenderUtilities
- Added several alternates existing functions in FontUtilities
to allow for usingStringandComponentinstead ofList<Componet> - Added some entity utilities to
EntityUtilities
### Changed
- Renamed ParameterizedLazrPacket
toLazrPacket** - Moved several text-related functions from ScreenUtilities
toFontUtilies - Renamed BlitCoordinates
toScreenCoordinate - Moved lazrslib.client.font.ComponentUtilities
tolazrslib.common.component.ComponentUtilities - Renamed lazrslib.client.ui.OnClickFunction
tolazrslib.client.IOnClickFunction
### Fixed
- Fixed several typos in function and class names.
### Removed
- Removed ThreadsafeLazrPacket
** - Removed several redundant packet registering functions in
LazrNetworkthey've now been unified intoregister(packet, decoder)`**
- Completely rewritten for multi loader, for compatible release on forge, neoforge, and fabric.
- Added
IPacketContextpassed when handling `LazrPacket.handleClientside(ctx)andLazrPacket.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 theInteractableOverlay.tick()function. - Added some cube drawing functions in RenderUtilities
- Added several alternates existing functions in FontUtilities
to allow for usingStringandComponentinstead ofList<Componet> - Added some entity utilities to
EntityUtilities
### Changed
- Renamed ParameterizedLazrPacket
toLazrPacket** - Moved several text-related functions from ScreenUtilities
toFontUtilies - Renamed BlitCoordinates
toScreenCoordinate - Moved lazrslib.client.font.ComponentUtilities
tolazrslib.common.component.ComponentUtilities - Renamed lazrslib.client.ui.OnClickFunction
tolazrslib.client.IOnClickFunction
### Fixed
- Fixed several typos in function and class names.
### Removed
- Removed ThreadsafeLazrPacket
** - Removed several redundant packet registering functions in
LazrNetworkthey've now been unified intoregister(packet, decoder)`**
- Completely rewritten for multi loader, for compatible release on forge, neoforge, and fabric.
- Added
IPacketContextpassed when handling `LazrPacket.handleClientside(ctx)andLazrPacket.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 theInteractableOverlay.tick()function. - Added some cube drawing functions in RenderUtilities
- Added several alternates existing functions in FontUtilities
to allow for usingStringandComponentinstead ofList<Componet> - Added some entity utilities to
EntityUtilities
### Changed
- Renamed ParameterizedLazrPacket
toLazrPacket** - Moved several text-related functions from ScreenUtilities
toFontUtilies - Renamed BlitCoordinates
toScreenCoordinate - Moved lazrslib.client.font.ComponentUtilities
tolazrslib.common.component.ComponentUtilities - Renamed lazrslib.client.ui.OnClickFunction
tolazrslib.client.IOnClickFunction
### Fixed
- Fixed several typos in function and class names.
### Removed
- Removed ThreadsafeLazrPacket
** - Removed several redundant packet registering functions in
LazrNetworkthey've now been unified intoregister(packet, decoder)`**
