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

@ -75,6 +75,11 @@ public class DynEMC {
}
}
}
public List<CustomWrappedStack> getCriticalNodes() {
return graph.getCriticalNodes();
}
public int 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

@ -229,6 +229,23 @@ public class CustomWrappedStack {
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
public int hashCode() {

View file

@ -14,7 +14,7 @@ public class Strings {
/* General keys */
public static final String TRUE = "true";
public static final String FALSE = "false";
public static final String TOKEN_DELIMITER = ",";
public static final String TOKEN_DELIMITER = ".";
/* 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.";