diff options
author | Ethryan <dborrfors@gmail.com> | 2017-10-06 20:14:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 20:14:20 +0200 |
commit | da736d6c70e37fb91c93d88f020799c787bb5560 (patch) | |
tree | 26410f0d2b484ee9ccc96bba430100165a1964c0 /src/main | |
parent | 87fc93f11d69250f7312e876bb1f7054203ce78b (diff) | |
download | GT5-Unofficial-da736d6c70e37fb91c93d88f020799c787bb5560.tar.gz GT5-Unofficial-da736d6c70e37fb91c93d88f020799c787bb5560.tar.bz2 GT5-Unofficial-da736d6c70e37fb91c93d88f020799c787bb5560.zip |
Messy but it works i think
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/gregtech/api/objects/MaterialStack.java | 388 |
1 files changed, 383 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/objects/MaterialStack.java b/src/main/java/gregtech/api/objects/MaterialStack.java index a5abffc0da..4662404e0e 100644 --- a/src/main/java/gregtech/api/objects/MaterialStack.java +++ b/src/main/java/gregtech/api/objects/MaterialStack.java @@ -31,24 +31,402 @@ public class MaterialStack implements Cloneable { } @Override + //Done sub numbering up to 50. couldn't find a better way to do this public String toString() { String temp1 = "", temp2 = mMaterial.getToolTip(true), temp3 = "", temp4 = ""; - if (mAmount > 1 && mAmount < 10) { - temp4 = ("\u208("+String.valueOf(mAmount)+")"); + if (mAmount == 2) { + temp4 = "\u2082"; if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { temp1 = "("; temp3 = ")"; } - - if (mAmount >= 10 && mAmount < 20) { - temp4 = ("\u2081"+"\u208("+String.valueOf(mAmount)+")"); + } + if (mAmount == 3) { + temp4 = "\u2083"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 4) { + temp4 = "\u2084"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 5) { + temp4 = "\u2085"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 6) { + temp4 = "\u2086"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 7) { + temp4 = "\u2087"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 8) { + temp4 = "\u2088"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 9) { + temp4 = "\u2089"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 10) { + temp4 = "\u2081"+"\u2080"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 11) { + temp4 = "\u2081"+"\u2081"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 12) { + temp4 = "\u2081"+"\u2082"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 13) { + temp4 = "\u2081"+"\u2083"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 14) { + temp4 = "\u2081"+"\u2084"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 15) { + temp4 = "\u2081"+"\u2085"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 16) { + temp4 = "\u2081"+"\u2086"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 17) { + temp4 = "\u2081"+"\u2087"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 18) { + temp4 = "\u2081"+"\u2088"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 19) { + temp4 = "\u2081"+"\u2089"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 20) { + temp4 = "\u2082"+"\u2080"; if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { temp1 = "("; temp3 = ")"; } } + if (mAmount == 21) { + temp4 = "\u2082"+"\u2081"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 22) { + temp4 = "\u2082"+"\u2082"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 23) { + temp4 = "\u2082"+"\u2083"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 24) { + temp4 = "\u2082"+"\u2084"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 25) { + temp4 = "\u2082"+"\u2085"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 26) { + temp4 = "\u2082"+"\u2086"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 27) { + temp4 = "\u2082"+"\u2087"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 28) { + temp4 = "\u2082"+"\u2088"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 29) { + temp4 = "\u2082"+"\u2089"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 30) { + temp4 = "\u2083"+"\u2080"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 31) { + temp4 = "\u2083"+"\u2081"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 32) { + temp4 = "\u2083"+"\u2082"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 33) { + temp4 = "\u2083"+"\u2083"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 34) { + temp4 = "\u2083"+"\u2084"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 35) { + temp4 = "\u2083"+"\u2085"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 36) { + temp4 = "\u2083"+"\u2086"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 37) { + temp4 = "\u2083"+"\u2087"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 38) { + temp4 = "\u2083"+"\u2088"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 39) { + temp4 = "\u2083"+"\u2089"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 40) { + temp4 = "\u2084"+"\u2080"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 41) { + temp4 = "\u2084"+"\u2081"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 42) { + temp4 = "\u2084"+"\u2082"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 43) { + temp4 = "\u2084"+"\u2083"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 44) { + temp4 = "\u2084"+"\u2084"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 45) { + temp4 = "\u2084"+"\u2085"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 46) { + temp4 = "\u2084"+"\u2086"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 47) { + temp4 = "\u2084"+"\u2087"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 48) { + temp4 = "\u2084"+"\u2088"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 49) { + temp4 = "\u2084"+"\u2089"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + if (mAmount == 50) { + temp4 = "\u2083"+"\u2081"; + + if (mMaterial.mMaterialList.size() > 1 || isMaterialListComplex(this)) { + temp1 = "("; + temp3 = ")"; + } + } + return String.valueOf(new StringBuilder().append(temp1).append(temp2).append(temp3).append(temp4)); } |