package com.dairymoose.modernlife.core;

import java.util.HashMap;
import java.util.Map;
import net.minecraftforge.common.crafting.CraftingHelper;

/* loaded from: outputsrg.jar:com/dairymoose/modernlife/core/ModernLifeCraftingFlags.class */
public final class ModernLifeCraftingFlags {
    private static Map<String, Boolean> craftingFlags = new HashMap();

    public ModernLifeCraftingFlags() {
        CraftingHelper.register(new CraftingFlagConditionSerializer());
    }

    public void clear() {
        craftingFlags.clear();
    }

    public static void putFlag(String flag, boolean value) {
        craftingFlags.put(flag, Boolean.valueOf(value));
    }

    public static boolean getFlag(String flag) {
        Boolean result = craftingFlags.get(flag);
        if (result != null) {
            return result.booleanValue();
        }
        return false;
    }
}
