SanLib

Library containing code used by all of SanAndreaP's mods

File Details

SanLib-1.12.2-1.6.0.jar

  • R
  • Feb 14, 2021
  • 328.83 KB
  • 1.1K
  • 1.12.2
  • Forge

File Name

SanLib-1.12.2-1.6.0.jar

Supported Versions

  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:sanlib-259724:3203762")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

  • requires Forge 14.23.5.2831
  • added API for data-driven GUIs based on the JSON format
  • added emissive block/item model
  • deprecated Lexicon API in favor of Patchouli
  • added GuiUtils#drawGradientRect() and GuiUtils#buildColoredQuad()
  • @Init from the Config-API now has 2 stages, Pre (default) and Post
  • Config-API can now handle private/protected fields
  • MiscUtils#calcFormula() now correctly interprets asin/acos, not changing them to sin/cos
  • LangUtils now converts newline characters properly
  • fixed hue "overshooting" past 360.0 in ColorObj#calcAndSetRgbFromHsl()
  • added Procedure functional interface
  • relicense to BSD-3-clause
  • added fixed item_nbt variant for custom machine recipes
  • LangUtils#translate(String langKey, Object... args) now won't try to format with no additional arguments
  • fixed InventoryUtils#addStackToCapability() to return the remainder instead of either all or none
  • fixed ConcurrentModificationException whilst looking up an entity with their UUID via EntityUtils#getEntityByUUID()
  • added RenderUtils#renderStackInWorld() method with customizable transform type parameter
  • added RenderUtils#renderStackInWorld() method with entity parameter (for custom model overrides)
  • added GuiUtils#buildColoredQuad() method
  • added new methods to JsonUtils for adding properties to JSON objects
  • added new methods to EntityUtils
    • tryApplyMultiplier()
    • tryRemoveMultiplier()
  • added new methods to InventoryUtils
    • mergeItemStack()
    • finishTransfer()
    • dropBlockItems()
  • added new methods to ItemStackUtils
    • dropBlockItem()
    • getCompactItems()
  • added new methods to MiscUtils
    • wrap360()
    • applyNonNull()
    • buildCustomBlockStateContainer()
    • readFile()
    • readInteger()
    • getNumberFormat()
    • getNumberSiPrefixed()
    • getPathedRL()
  • added getHeldItemOfType() to PlayerUtils
  • changed my implementation of my player model, it now uses the vanilla model with some modifications; it's now compatible with e.g. the Emote system from Quark

 

changelog can be found here: FORMATTED | RAW