Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
HammerLib

HammerLib

Utility mod that contains really useful code for quite a few mods.

291.7k
38
Library
AboutGalleryChangelogVersions

12.2.58

by Zeith on Mar 26, 2025
Download

To get developer builds, see HammerLib wiki.

Changes:

  • Prevent shaders from reloading during preInit (because some mods force a reload on preinit for... some reason);
  • Actually query ShaderVar state and recompile shader program whenever variables change;
  • Utility methods for ColoredLight;
  • Fix shader NPEs caused by null values;
  • Reset shader variable hasChanged state on upload.

20.1.50

by Zeith on Mar 23, 2025
Download
  • Backport secure jar display in mod list;
  • Proper synchronization with SimpleInventory change;

21.4.5

by Zeith on Mar 5, 2025
Download

Changelog:

  • Remove deprecated field HLConstants.CRAFTING_MATERIAL (fa09ec0417d0d21) by Zeith
  • Update build.txt (49f26d2eadee22b) by Zeith

21.4.4

by Zeith on Mar 5, 2025
Download

Changelog:

  • Add signed jar status display in mod list. (e64350b5afc64e5) by Zeith

21.4.3

by Zeith on Mar 5, 2025
Download

Changelog:

  • [21.4.3] Add <hover> object to allow hiding things until hovered on. (8191eadfb304740) by Zeith
    • Remove NeoForge mod loader from modrinth loaders section since it determines the loader by itself. (9d5b3eb54f41dcf) by Zeith

21.4.2

by Zeith on Mar 4, 2025
Download

Changelog:

21.4.1

by Zeith on Mar 4, 2025
Download

1.21.4 port for latest NeoForge

20.1.48

by Zeith on Jan 18, 2025
Download
  • Expand server context inside RegisterRecipesEvent with registry access and recipe manager.

20.1.47

by Zeith on Jan 18, 2025
Download
  • RotationHelper.fromNormal
  • RecipeHelper.NEOFORGE_MOD_ID_FOR_TAGS
  • ObjectMirrorConverter.unwrap
  • Fix FluidFactory.is(Fluid)

20.1.46

by Zeith on Jan 18, 2025
Download

BREAKING CHANGES

  • Copy of java.awt.Color without loading Toolkit library (which will be unavailable on headless servers);
  • Tweaks to spoofed recipes (using multimaps)
  • Remove experimental spoofed recipe access from RegisterRecipesEvent.
  • Rework recipe builders to use less generics and allow any identifiable output to be used, not just items;
  • Remove experimental spoofed recipe access from RegisterRecipesEvent;

20.1.45

by Zeith on Jan 17, 2025
Download

Changelog:

  • TableHelper.computeIfAbsent
  • ShapeUtils
  • RotatedShapeCache / RotatedShapeCacheSimple
  • AABBUtils fixes

20.1.44

by Zeith on Jan 13, 2025
Download

Changelog:

  • EmissiveGeometry ("loader": "hammerlib:emissive") + DelegateBakedModel
  • GuiObject.elementZPos
  • tr_tr.lang Turkish Localization

20.1.43

by Zeith on Jan 13, 2025
Download

Changelog:

  • Add render-width and render-height to allow for independent image size from its UV size.
  • Text component drivers parse java string literals as well now.

20.1.41

by Zeith on Jan 6, 2025
Download

Changelog:

  • Add item decorations to GuiItemObject;
  • Added GuiTooltipObject;
  • Added a few add/remove hooks to GuiObject;
  • Added GuiObject.drawTooltip for components to render tooltip if needed (like fluids and items);
  • Abstract Tooltip interface for rendering tooltips in flowguis;
  • GuiFluidObject for fluids;
  • IExtendedFluidType for fluid rarity and tooltip image;
  • Improvements to FluidHelper;
  • Add effective way of converting nashorn JSON to Gson and Json through ObjectMirrorConverter;
  • Added Suggestions for properties (API for HammerHelper)

20.1.39

by Zeith on Jan 4, 2025
Download

Changelog:

  • Add GuiItemObject (and <item/> flowgui xml tag);
  • Add JeiKeyRole [obtained via IJeiPluginHL.get().getRoleForKey()] shortcut to show recipes/usages;
  • Add GLStencil (and a config option to enable/disable stencils);
  • Added ComDrivers.readString & ComDrivers;.driveString for support of dynamically driven text;
  • Group few parameters into DriverContext;
  • Added FlowguiShaderRegistry to allow customization of shaders on images and sprite buttons;
  • Enable ES6 support in OpenJDKParser;
  • Suppliers2 for mapping suppliers;
  • GuiWidgetWrapperObject for embedding abstract widgets into GuiObject system;

20.1.38

by Zeith on Dec 25, 2024
Download

Changelog:

  • Add render-width and render-height to allow for independent image size from its UV size.
  • Text component drivers parse java string literals as well now.

20.1.37

by Zeith on Dec 25, 2024
Download

Changelog:

  • Flowgui XML improvements

20.1.36

by Zeith on Dec 24, 2024
Download

20.1.35

by Zeith on Dec 24, 2024
Download

Changelog:

  • [1.21.4] Changes to data scanning. (d7ebdf3dfbc0384) by Zeith
  • [1.21.4] Bring back CC Tweaked compat! (98c1ce03cf79de2) by Zeith
  • [1.21.4] Languages are back up! (27f5e06f042c131) by Zeith
  • [1.21.4] Cleanup unused glint shaders! (b5eb83d47affb30) by Zeith
  • [1.21.4] Fixed glint! (3d19595124fdb9c) by Zeith
  • [1.21.4] Fix shaders (dcaaf62ff07e944) by Zeith
  • 1.21.4 (c0c435cec8e5f36) by Zeith
  • 1.21.4 (c3bc59f24191a75) by Zeith
  • Fix javadoc typo. (76c98bb9641d504) by Zeith
  • Update lombok and specify changelog generator version. (60d9fc42a6cde0e) by Zeith
  • [1.21] Update build.txt (15f5bc4495c9252) by Zeith
  • [1.21] Added ability to change click sound in GuiButtonObject; (ce97be8df023022) by Zeith

21.0.14

by Zeith on Sep 20, 2024
Download

Changelog:

  • [1.21] Flowgui API ported to 1.21 (196425b35cb0400) by Zeith
  • [1.20.1] Rename parameter names. (b30734a89ce777d) by Zeith
  • [1.20.1] Patch Flowgui API (7fea3b5ddf6f4c4) by Zeith
  • [1.21] Flowgui API, allowing component inheritance, complex slot transformations and (846d7f25d5d5aba) by Zeith
  • Update deps (68376d702682c77) by Zeith
  • Add DirectStorage.apply to transform the value using an unary operator. (1cd7256a979bc11) by Zeith
  • Update build info, (2c40e114cb0eb07) by Zeith
1
2
7

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+
Filter

Show all versions

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.