package com.pahimar.ee3.emc; import java.util.Map; import java.util.TreeMap; import com.pahimar.ee3.item.CustomWrappedStack; /** * Equivalent-Exchange-3 * * EmcIMCValues * * @author pahimar * @license Lesser GNU Public License v3 (http://www.gnu.org/licenses/lgpl.html) * */ public class EmcValuesIMC { private static Map preAssignedValueMap = new TreeMap(); private static Map postAssignedValueMap = new TreeMap(); public static Map getPreAssignedValues() { return preAssignedValueMap; } public static Map getPostAssignedValues() { return postAssignedValueMap; } public static void addPreAssignedValued(CustomWrappedStack wrappedStack, EmcValue emcValue) { if (!preAssignedValueMap.containsKey(wrappedStack)) { preAssignedValueMap.put(wrappedStack, emcValue); } } public static void addPostAssignedValued(CustomWrappedStack wrappedStack, EmcValue emcValue) { if (!postAssignedValueMap.containsKey(wrappedStack)) { postAssignedValueMap.put(wrappedStack, emcValue); } } }