Stuff!
This commit is contained in:
parent
48a16c676e
commit
4dac7c1bde
4 changed files with 38 additions and 1 deletions
|
@ -76,6 +76,11 @@ public class DynEMC {
|
|||
}
|
||||
}
|
||||
|
||||
public List<CustomWrappedStack> getCriticalNodes() {
|
||||
|
||||
return graph.getCriticalNodes();
|
||||
}
|
||||
|
||||
public int size() {
|
||||
|
||||
return graph.size();
|
||||
|
|
15
ee3_common/com/pahimar/ee3/emc/EmcDefaultValues.java
Normal file
15
ee3_common/com/pahimar/ee3/emc/EmcDefaultValues.java
Normal 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() {
|
||||
|
||||
}
|
||||
}
|
|
@ -230,6 +230,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() {
|
||||
|
||||
|
|
|
@ -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.";
|
||||
|
|
Loading…
Reference in a new issue