Resolve MaterialLib ml references in stack config entries

This commit is contained in:
Ruling-0 committed 2026-08-17 20:18:14 -05:00
1 parent eafd9ff4a3
commit a1631b0f58
4 files changed
+77 -3

No files matched your search

@@ -27,6 +27,11 @@ import codechicken.nei.util.NBTHelper;
public class StackInfo {
/// Prefix of the stable MaterialLib reference form `ml:<MaterialName>:<shapeToken>`, which config entries use
/// instead of an id and metadata because MaterialLib hands out metadata afresh every session.
/// MaterialLibStackStringifyHandler resolves it, and is registered only when MaterialLib is present.
public static final String MATERIALLIB_PREFIX = "ml:";
private static final FluidStack NULL_FLUID = new FluidStack(FluidRegistry.WATER, 0);
public static final List<IStackStringifyHandler> stackStringifyHandlers = new ArrayList<>();
private static final Map<String, HashMap<String, String[]>> guidfilters = new HashMap<>();