This commit is contained in:
pahimar 2013-07-15 19:20:27 -04:00
parent 48a16c676e
commit 4dac7c1bde
4 changed files with 38 additions and 1 deletions

View file

@ -76,6 +76,11 @@ public class DynEMC {
} }
} }
public List<CustomWrappedStack> getCriticalNodes() {
return graph.getCriticalNodes();
}
public int size() { public int size() {
return graph.size(); return graph.size();

View file

@ -0,0 +1,15 @@
package com.pahimar.ee3.emc;
import java.util.HashMap;
import java.util.List;
import com.pahimar.ee3.item.CustomWrappedStack;
public class EmcDefaultValues {
private static HashMap<CustomWrappedStack, List<CustomWrappedStack>> defaultEmcValues = new HashMap<CustomWrappedStack, List<CustomWrappedStack>>();
public static void init() {
}
}

View file

@ -230,6 +230,23 @@ public class CustomWrappedStack {
return stringBuilder.toString(); return stringBuilder.toString();
} }
public String encodeAsPropertyKey() {
StringBuilder stringBuilder = new StringBuilder();
if (itemStack != null) {
stringBuilder.append(String.format("%sxitemStack[%s:%s:%s:%s]", this.stackSize, itemStack.itemID, itemStack.getItemDamage(), itemStack.getItemName(), itemStack.getItem().getClass().getCanonicalName()));
}
else if (oreStack != null) {
stringBuilder.append(String.format("%dxoreDictionary.%s", stackSize, oreStack.oreName));
}
else if (energyStack != null) {
stringBuilder.append(String.format("%dxenergyStack.%s", stackSize, energyStack.energyName));
}
return stringBuilder.toString();
}
@Override @Override
public int hashCode() { public int hashCode() {

View file

@ -14,7 +14,7 @@ public class Strings {
/* General keys */ /* General keys */
public static final String TRUE = "true"; public static final String TRUE = "true";
public static final String FALSE = "false"; public static final String FALSE = "false";
public static final String TOKEN_DELIMITER = ","; public static final String TOKEN_DELIMITER = ".";
/* Fingerprint check related constants */ /* Fingerprint check related constants */
public static final String INVALID_FINGERPRINT_MESSAGE = "The copy of Equivalent Exchange 3 that you are running has been modified from the original, and unpredictable things may happen. Please consider re-downloading the original version of the mod."; public static final String INVALID_FINGERPRINT_MESSAGE = "The copy of Equivalent Exchange 3 that you are running has been modified from the original, and unpredictable things may happen. Please consider re-downloading the original version of the mod.";