diff options
| author | Shawn Buckley <shawntbuckley@gmail.com> | 2015-10-21 22:15:09 -0400 |
|---|---|---|
| committer | Shawn Buckley <shawntbuckley@gmail.com> | 2015-10-21 22:15:09 -0400 |
| commit | 123aa6ed288b2f67b0d47177f4d27cd6893daf3a (patch) | |
| tree | 358e3704182f5b6fda44fa8b20605ab63edca092 /src/main/java/gregtech/api/enums | |
| parent | 43ddecc7b9715d2038747566f89930b5db8d0181 (diff) | |
| download | GT5-Unofficial-123aa6ed288b2f67b0d47177f4d27cd6893daf3a.tar.gz GT5-Unofficial-123aa6ed288b2f67b0d47177f4d27cd6893daf3a.tar.bz2 GT5-Unofficial-123aa6ed288b2f67b0d47177f4d27cd6893daf3a.zip | |
Reformat code
Diffstat (limited to 'src/main/java/gregtech/api/enums')
| -rw-r--r-- | src/main/java/gregtech/api/enums/ConfigCategories.java | 118 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/Dyes.java | 195 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/Element.java | 599 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/GT_Values.java | 227 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/ItemList.java | 1535 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/Materials.java | 3281 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/OreDictNames.java | 146 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/OrePrefixes.java | 1573 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/SubTag.java | 523 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/TC_Aspects.java | 155 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/TextureSet.java | 321 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/Textures.java | 841 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/Tier.java | 168 | ||||
| -rw-r--r-- | src/main/java/gregtech/api/enums/ToolDictNames.java | 56 |
14 files changed, 4792 insertions, 4946 deletions
diff --git a/src/main/java/gregtech/api/enums/ConfigCategories.java b/src/main/java/gregtech/api/enums/ConfigCategories.java index ba61c759da..1245d7ac08 100644 --- a/src/main/java/gregtech/api/enums/ConfigCategories.java +++ b/src/main/java/gregtech/api/enums/ConfigCategories.java @@ -1,64 +1,64 @@ package gregtech.api.enums; public enum ConfigCategories { - news, - general, - machineconfig, - specialunificationtargets; + news, + general, + machineconfig, + specialunificationtargets; - public enum IDs { - crops, - enchantments; - } - - public enum Materials { - heatdamage, - oreprocessingoutputmultiplier, - blastfurnacerequirements, - blastinductionsmelter,; - } - - public enum Recipes { - researches, - harderrecipes, - gregtechrecipes, - disabledrecipes, - recipereplacements, - storageblockcrafting, - storageblockdecrafting; - } - - public enum Machines { - smelting, - squeezer, - liquidtransposer, - liquidtransposerfilling, - liquidtransposeremptying, - extractor, - sawmill, - compression, - thermalcentrifuge, - orewashing, - inductionsmelter, - rcblastfurnace, - scrapboxdrops, - massfabamplifier, - maceration, - rockcrushing, - pulverization; - } - - public enum Fuels { - boilerfuels; - } - - public enum Tools { - mortar, - hammerplating, - hammermultiingot, - hammerdoubleplate, - hammertripleplate, - hammerquadrupleplate, - hammerquintupleplate; - } + public enum IDs { + crops, + enchantments; + } + + public enum Materials { + heatdamage, + oreprocessingoutputmultiplier, + blastfurnacerequirements, + blastinductionsmelter,; + } + + public enum Recipes { + researches, + harderrecipes, + gregtechrecipes, + disabledrecipes, + recipereplacements, + storageblockcrafting, + storageblockdecrafting; + } + + public enum Machines { + smelting, + squeezer, + liquidtransposer, + liquidtransposerfilling, + liquidtransposeremptying, + extractor, + sawmill, + compression, + thermalcentrifuge, + orewashing, + inductionsmelter, + rcblastfurnace, + scrapboxdrops, + massfabamplifier, + maceration, + rockcrushing, + pulverization; + } + + public enum Fuels { + boilerfuels; + } + + public enum Tools { + mortar, + hammerplating, + hammermultiingot, + hammerdoubleplate, + hammertripleplate, + hammerquadrupleplate, + hammerquintupleplate; + } }
\ No newline at end of file diff --git a/src/main/java/gregtech/api/enums/Dyes.java b/src/main/java/gregtech/api/enums/Dyes.java index e37648dbef..66c3927783 100644 --- a/src/main/java/gregtech/api/enums/Dyes.java +++ b/src/main/java/gregtech/api/enums/Dyes.java @@ -3,103 +3,108 @@ package gregtech.api.enums; import gregtech.api.interfaces.IColorModulationContainer; import gregtech.api.objects.GT_ArrayList; import gregtech.api.util.GT_Utility; - -import java.util.ArrayList; - import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidStack; +import java.util.ArrayList; + public enum Dyes implements IColorModulationContainer { - /** The valid Colors, see VALUES Array below */ - dyeBlack ( 0, 32, 32, 32, "Black"), - dyeRed ( 1, 255, 0, 0, "Red"), - dyeGreen ( 2, 0, 255, 0, "Green"), - dyeBrown ( 3, 96, 64, 0, "Brown"), - dyeBlue ( 4, 0, 0, 255, "Blue"), - dyePurple ( 5, 128, 0, 128, "Purple"), - dyeCyan ( 6, 0, 255, 255, "Cyan"), - dyeLightGray ( 7, 192, 192, 192, "Light Gray"), - dyeGray ( 8, 128, 128, 128, "Gray"), - dyePink ( 9, 255, 192, 192, "Pink"), - dyeLime (10, 128, 255, 128, "Lime"), - dyeYellow (11, 255, 255, 0, "Yellow"), - dyeLightBlue (12, 128, 128, 255, "Light Blue"), - dyeMagenta (13, 255, 0, 255, "Magenta"), - dyeOrange (14, 255, 128, 0, "Orange"), - dyeWhite (15, 255, 255, 255, "White"), - /** The NULL Color */ - _NULL (-1, 255, 255, 255, "INVALID COLOR"), - /** Additional Colors only used for direct Color referencing */ - CABLE_INSULATION (-1, 64, 64, 64, "Cable Insulation"), - CONSTRUCTION_FOAM (-1, 64, 64, 64, "Construction Foam"), - MACHINE_METAL (-1, 220, 220, 255, "Machine Metal"); - - public static final Dyes VALUES[] = {dyeBlack, dyeRed, dyeGreen, dyeBrown, dyeBlue, dyePurple, dyeCyan, dyeLightGray, dyeGray, dyePink, dyeLime, dyeYellow, dyeLightBlue, dyeMagenta, dyeOrange, dyeWhite}; - - public final byte mIndex; - public final String mName; - public final short[] mRGBa; - private final ArrayList<Fluid> mFluidDyes = new GT_ArrayList<Fluid>(false, 1); - - private Dyes(int aIndex, int aR, int aG, int aB, String aName) { - mIndex = (byte)aIndex; - mName = aName; - mRGBa = new short[] {(short)aR, (short)aG, (short)aB, 0}; - } - - public static Dyes get(int aColor) { - if (aColor >= 0 && aColor < 16) return VALUES[aColor]; - return _NULL; - } - - public static short[] getModulation(int aColor, short[] aDefaultModulation) { - if (aColor >= 0 && aColor < 16) return VALUES[aColor].mRGBa; - return aDefaultModulation; - } - - public static Dyes get(String aColor) { - Object tObject = GT_Utility.getFieldContent(Dyes.class, aColor, false, false); - if (tObject != null && tObject instanceof Dyes) return (Dyes)tObject; - return _NULL; - } - - public static boolean isAnyFluidDye(FluidStack aFluid) { - return aFluid != null && isAnyFluidDye(aFluid.getFluid()); - } - - public static boolean isAnyFluidDye(Fluid aFluid) { - if (aFluid != null) for (Dyes tDye : VALUES) if (tDye.isFluidDye(aFluid)) return true; - return false; - } - - public boolean isFluidDye(FluidStack aFluid) { - return aFluid != null && isFluidDye(aFluid.getFluid()); - } - - public boolean isFluidDye(Fluid aFluid) { - return aFluid != null && mFluidDyes.contains(aFluid); - } - - public boolean addFluidDye(Fluid aDye) { - if (aDye == null || mFluidDyes.contains(aDye)) return false; - mFluidDyes.add(aDye); - return true; - } - - public int getSizeOfFluidList() { - return mFluidDyes.size(); - } - - /** - * @param aAmount 1 Fluid Material Unit (144) = 1 Dye Item - */ - public FluidStack getFluidDye(int aIndex, long aAmount) { - if (aIndex >= mFluidDyes.size() || aIndex < 0) return null; - return new FluidStack(mFluidDyes.get(aIndex), (int)aAmount); - } - - @Override - public short[] getRGBA() { - return mRGBa; - } + /** + * The valid Colors, see VALUES Array below + */ + dyeBlack(0, 32, 32, 32, "Black"), + dyeRed(1, 255, 0, 0, "Red"), + dyeGreen(2, 0, 255, 0, "Green"), + dyeBrown(3, 96, 64, 0, "Brown"), + dyeBlue(4, 0, 0, 255, "Blue"), + dyePurple(5, 128, 0, 128, "Purple"), + dyeCyan(6, 0, 255, 255, "Cyan"), + dyeLightGray(7, 192, 192, 192, "Light Gray"), + dyeGray(8, 128, 128, 128, "Gray"), + dyePink(9, 255, 192, 192, "Pink"), + dyeLime(10, 128, 255, 128, "Lime"), + dyeYellow(11, 255, 255, 0, "Yellow"), + dyeLightBlue(12, 128, 128, 255, "Light Blue"), + dyeMagenta(13, 255, 0, 255, "Magenta"), + dyeOrange(14, 255, 128, 0, "Orange"), + dyeWhite(15, 255, 255, 255, "White"), + /** + * The NULL Color + */ + _NULL(-1, 255, 255, 255, "INVALID COLOR"), + /** + * Additional Colors only used for direct Color referencing + */ + CABLE_INSULATION(-1, 64, 64, 64, "Cable Insulation"), + CONSTRUCTION_FOAM(-1, 64, 64, 64, "Construction Foam"), + MACHINE_METAL(-1, 220, 220, 255, "Machine Metal"); + + public static final Dyes VALUES[] = {dyeBlack, dyeRed, dyeGreen, dyeBrown, dyeBlue, dyePurple, dyeCyan, dyeLightGray, dyeGray, dyePink, dyeLime, dyeYellow, dyeLightBlue, dyeMagenta, dyeOrange, dyeWhite}; + + public final byte mIndex; + public final String mName; + public final short[] mRGBa; + private final ArrayList<Fluid> mFluidDyes = new GT_ArrayList<Fluid>(false, 1); + + private Dyes(int aIndex, int aR, int aG, int aB, String aName) { + mIndex = (byte) aIndex; + mName = aName; + mRGBa = new short[]{(short) aR, (short) aG, (short) aB, 0}; + } + + public static Dyes get(int aColor) { + if (aColor >= 0 && aColor < 16) return VALUES[aColor]; + return _NULL; + } + + public static short[] getModulation(int aColor, short[] aDefaultModulation) { + if (aColor >= 0 && aColor < 16) return VALUES[aColor].mRGBa; + return aDefaultModulation; + } + + public static Dyes get(String aColor) { + Object tObject = GT_Utility.getFieldContent(Dyes.class, aColor, false, false); + if (tObject != null && tObject instanceof Dyes) return (Dyes) tObject; + return _NULL; + } + + public static boolean isAnyFluidDye(FluidStack aFluid) { + return aFluid != null && isAnyFluidDye(aFluid.getFluid()); + } + + public static boolean isAnyFluidDye(Fluid aFluid) { + if (aFluid != null) for (Dyes tDye : VALUES) if (tDye.isFluidDye(aFluid)) return true; + return false; + } + + public boolean isFluidDye(FluidStack aFluid) { + return aFluid != null && isFluidDye(aFluid.getFluid()); + } + + public boolean isFluidDye(Fluid aFluid) { + return aFluid != null && mFluidDyes.contains(aFluid); + } + + public boolean addFluidDye(Fluid aDye) { + if (aDye == null || mFluidDyes.contains(aDye)) return false; + mFluidDyes.add(aDye); + return true; + } + + public int getSizeOfFluidList() { + return mFluidDyes.size(); + } + + /** + * @param aAmount 1 Fluid Material Unit (144) = 1 Dye Item + */ + public FluidStack getFluidDye(int aIndex, long aAmount) { + if (aIndex >= mFluidDyes.size() || aIndex < 0) return null; + return new FluidStack(mFluidDyes.get(aIndex), (int) aAmount); + } + + @Override + public short[] getRGBA() { + return mRGBa; + } }
\ No newline at end of file diff --git a/src/main/java/gregtech/api/enums/Element.java b/src/main/java/gregtech/api/enums/Element.java index b9ff795320..61528a11de 100644 --- a/src/main/java/gregtech/api/enums/Element.java +++ b/src/main/java/gregtech/api/enums/Element.java @@ -8,304 +8,303 @@ import java.util.ArrayList; * This is some kind of Periodic Table, which I use to determine Properties of the Materials. */ public enum Element { - _NULL ( 0, 0, 0, -1, null , "" , false), - H ( 1, 0, 0, -1, null , "Hydrogen" , false), - D ( 1, 1, 0, -1, "H" , "Deuterium" , true), - T ( 1, 2, 0, -1, "D" , "Tritium" , true), - He ( 2, 2, 0, -1, null , "Helium" , false), - He_3 ( 2, 1, 0, -1, "H&D" , "Helium-3" , true), - Li ( 3, 4, 0, -1, null , "Lithium" , false), - Be ( 4, 5, 0, -1, null , "Beryllium" , false), - B ( 5, 5, 0, -1, null , "Boron" , false), - C ( 6, 6, 0, -1, null , "Carbon" , false), - N ( 7, 7, 0, -1, null , "Nitrogen" , false), - O ( 8, 8, 0, -1, null , "Oxygen" , false), - F ( 9, 9, 0, -1, null , "Fluorine" , false), - Ne ( 10, 10, 0, -1, null , "Neon" , false), - Na ( 11, 11, 0, -1, null , "Sodium" , false), - Mg ( 12, 12, 0, -1, null , "Magnesium" , false), - Al ( 13, 13, 0, -1, null , "Aluminium" , false), - Si ( 14, 14, 0, -1, null , "Silicon" , false), - P ( 15, 15, 0, -1, null , "Phosphorus" , false), - S ( 16, 16, 0, -1, null , "Sulfur" , false), - Cl ( 17, 18, 0, -1, null , "Chlorine" , false), - Ar ( 18, 22, 0, -1, null , "Argon" , false), - K ( 19, 20, 0, -1, null , "Potassium" , false), - Ca ( 20, 20, 0, -1, null , "Calcium" , false), - Sc ( 21, 24, 0, -1, null , "Scandium" , false), - Ti ( 22, 26, 0, -1, null , "Titanium" , false), - V ( 23, 28, 0, -1, null , "Vanadium" , false), - Cr ( 24, 28, 0, -1, null , "Chrome" , false), - Mn ( 25, 30, 0, -1, null , "Manganese" , false), - Fe ( 26, 30, 0, -1, null , "Iron" , false), - Co ( 27, 32, 0, -1, null , "Cobalt" , false), - Ni ( 28, 30, 0, -1, null , "Nickel" , false), - Cu ( 29, 34, 0, -1, null , "Copper" , false), - Zn ( 30, 35, 0, -1, null , "Zinc" , false), - Ga ( 31, 39, 0, -1, null , "Gallium" , false), - Ge ( 32, 40, 0, -1, null , "Germanium" , false), - As ( 33, 42, 0, -1, null , "Arsenic" , false), - Se ( 34, 45, 0, -1, null , "Selenium" , false), - Br ( 35, 45, 0, -1, null , "Bromine" , false), - Kr ( 36, 48, 0, -1, null , "Krypton" , false), - Rb ( 37, 48, 0, -1, null , "Rubidium" , false), - Sr ( 38, 49, 0, -1, null , "Strontium" , false), - Y ( 39, 50, 0, -1, null , "Yttrium" , false), - Zr ( 40, 51, 0, -1, null , "Zirconium" , false), - Nb ( 41, 53, 0, -1, null , "Niobium" , false), - Mo ( 42, 53, 0, -1, null , "Molybdenum" , false), - Tc ( 43, 55, 0, -1, null , "Technetium" , false), - Ru ( 44, 57, 0, -1, null , "Ruthenium" , false), - Rh ( 45, 58, 0, -1, null , "Rhodium" , false), - Pd ( 46, 60, 0, -1, null , "Palladium" , false), - Ag ( 47, 60, 0, -1, null , "Silver" , false), - Cd ( 48, 64, 0, -1, null , "Cadmium" , false), - In ( 49, 65, 0, -1, null , "Indium" , false), - Sn ( 50, 68, 0, -1, null , "Tin" , false), - Sb ( 51, 70, 0, -1, null , "Antimony" , false), - Te ( 52, 75, 0, -1, null , "Tellurium" , false), - I ( 53, 74, 0, -1, null , "Iodine" , false), - Xe ( 54, 77, 0, -1, null , "Xenon" , false), - Cs ( 55, 77, 0, -1, null , "Caesium" , false), - Ba ( 56, 81, 0, -1, null , "Barium" , false), - La ( 57, 81, 0, -1, null , "Lantanium" , false), - Ce ( 58, 82, 0, -1, null , "Cerium" , false), - Pr ( 59, 81, 0, -1, null , "Praseodymium" , false), - Nd ( 60, 84, 0, -1, null , "Neodymium" , false), - Pm ( 61, 83, 0, -1, null , "Promethium" , false), - Sm ( 62, 88, 0, -1, null , "Samarium" , false), - Eu ( 63, 88, 0, -1, null , "Europium" , false), - Gd ( 64, 93, 0, -1, null , "Gadolinium" , false), - Tb ( 65, 93, 0, -1, null , "Terbium" , false), - Dy ( 66, 96, 0, -1, null , "Dysprosium" , false), - Ho ( 67, 97, 0, -1, null , "Holmium" , false), - Er ( 68, 99, 0, -1, null , "Erbium" , false), - Tm ( 69, 99, 0, -1, null , "Thulium" , false), - Yb ( 70, 103, 0, -1, null , "Ytterbium" , false), - Lu ( 71, 103, 0, -1, null , "Lutetium" , false), - Hf ( 72, 106, 0, -1, null , "Hafnium" , false), - Ta ( 73, 107, 0, -1, null , "Tantalum" , false), - W ( 74, 109, 0, -1, null , "Wolframium" , false), - Re ( 75, 111, 0, -1, null , "Rhenium" , false), - Os ( 76, 114, 0, -1, null , "Osmium" , false), - Ir ( 77, 115, 0, -1, null , "Iridium" , false), - Pt ( 78, 117, 0, -1, null , "Platinum" , false), - Au ( 79, 117, 0, -1, null , "Gold" , false), - Hg ( 80, 120, 0, -1, null , "Mercury" , false), - Tl ( 81, 123, 0, -1, null , "Thallium" , false), - Pb ( 82, 125, 0, -1, null , "Lead" , false), - Bi ( 83, 125, 0, -1, null , "Bismuth" , false), - Po ( 84, 124, 0, -1, null , "Polonium" , false), - At ( 85, 124, 0, -1, null , "Astatine" , false), - Rn ( 86, 134, 0, -1, null , "Radon" , false), - Fr ( 87, 134, 0, -1, null , "Francium" , false), - Ra ( 88, 136, 0, -1, null , "Radium" , false), - Ac ( 89, 136, 0, -1, null , "Actinium" , false), - Th ( 90, 140, 0, -1, null , "Thorium" , false), - Pa ( 91, 138, 0, -1, null , "Protactinium" , false), - U ( 92, 146, 0, -1, null , "Uranium" , false), - U_235 ( 92, 143, 0, -1, null , "Uranium-235" , true), - Np ( 93, 144, 0, -1, null , "Neptunium" , false), - Pu ( 94, 152, 0, -1, null , "Plutonium" , false), - Pu_241 ( 94, 149, 0, -1, null , "Plutonium-241" , true), - Am ( 95, 150, 0, -1, null , "Americium" , false), - Cm ( 96, 153, 0, -1, null , "Curium" , false), - Bk ( 97, 152, 0, -1, null , "Berkelium" , false), - Cf ( 98, 153, 0, -1, null , "Californium" , false), - Es ( 99, 153, 0, -1, null , "Einsteinium" , false), - Fm ( 100, 157, 0, -1, null , "Fermium" , false), - Md ( 101, 157, 0, -1, null , "Mendelevium" , false), - No ( 102, 157, 0, -1, null , "Nobelium" , false), - Lr ( 103, 159, 0, -1, null , "Lawrencium" , false), - Rf ( 104, 161, 0, -1, null , "Rutherfordium" , false), - Db ( 105, 163, 0, -1, null , "Dubnium" , false), - Sg ( 106, 165, 0, -1, null , "Seaborgium" , false), - Bh ( 107, 163, 0, -1, null , "Bohrium" , false), - Hs ( 108, 169, 0, -1, null , "Hassium" , false), - Mt ( 109, 167, 0, -1, null , "Meitnerium" , false), - Ds ( 110, 171, 0, -1, null , "Darmstadtium" , false), - Rg ( 111, 169, 0, -1, null , "Roentgenium" , false), - Cn ( 112, 173, 0, -1, null , "Copernicium" , false), - Uut ( 113, 171, 0, -1, null , "Ununtrium" , false), - Fl ( 114, 175, 0, -1, null , "Flerovium" , false), - Uup ( 115, 173, 0, -1, null , "Ununpentium" , false), - Lv ( 116, 177, 0, -1, null , "Livermorium" , false), - Fa ( 117, 177, 0, -1, null , "Farnsium" , false), // Uus, Ununseptium - Uuo ( 118, 176, 0, -1, null , "Ununoctium" , false), - - Ma ( 0, 0, 100, -1, null , "Magic" , false), - Nt ( 0,100000, 0, -1, null , "Neutronium" , false), - - $H (- 1,- 0, 0, -1, null , "Anti-Hydrogen" , false), - $D (- 1,- 1, 0, -1, "H" , "Anti-Deuterium" , true), - $T (- 1,- 2, 0, -1, "D" , "Anti-Tritium" , true), - $He (- 2,- 2, 0, -1, null , "Anti-Helium" , false), - $He_3 (- 2,- 1, 0, -1, "H&D" , "Anti-Helium-3" , true), - $Li (- 3,- 4, 0, -1, null , "Anti-Lithium" , false), - $Be (- 4,- 5, 0, -1, null , "Anti-Beryllium" , false), - $B (- 5,- 5, 0, -1, null , "Anti-Boron" , false), - $C (- 6,- 6, 0, -1, null , "Anti-Carbon" , false), - $N (- 7,- 7, 0, -1, null , "Anti-Nitrogen" , false), - $O (- 8,- 8, 0, -1, null , "Anti-Oxygen" , false), - $F (- 9,- 9, 0, -1, null , "Anti-Fluorine" , false), - $Ne (- 10,- 10, 0, -1, null , "Anti-Neon" , false), - $Na (- 11,- 11, 0, -1, null , "Anti-Sodium" , false), - $Mg (- 12,- 12, 0, -1, null , "Anti-Magnesium" , false), - $Al (- 13,- 13, 0, -1, null , "Anti-Aluminium" , false), - $Si (- 14,- 14, 0, -1, null , "Anti-Silicon" , false), - $P (- 15,- 15, 0, -1, null , "Anti-Phosphorus" , false), - $S (- 16,- 16, 0, -1, null , "Anti-Sulfur" , false), - $Cl (- 17,- 18, 0, -1, null , "Anti-Chlorine" , false), - $Ar (- 18,- 22, 0, -1, null , "Anti-Argon" , false), - $K (- 19,- 20, 0, -1, null , "Anti-Potassium" , false), - $Ca (- 20,- 20, 0, -1, null , "Anti-Calcium" , false), - $Sc (- 21,- 24, 0, -1, null , "Anti-Scandium" , false), - $Ti (- 22,- 26, 0, -1, null , "Anti-Titanium" , false), - $V (- 23,- 28, 0, -1, null , "Anti-Vanadium" , false), - $Cr (- 24,- 28, 0, -1, null , "Anti-Chrome" , false), - $Mn (- 25,- 30, 0, -1, null , "Anti-Manganese" , false), - $Fe (- 26,- 30, 0, -1, null , "Anti-Iron" , false), - $Co (- 27,- 32, 0, -1, null , "Anti-Cobalt" , false), - $Ni (- 28,- 30, 0, -1, null , "Anti-Nickel" , false), - $Cu (- 29,- 34, 0, -1, null , "Anti-Copper" , false), - $Zn (- 30,- 35, 0, -1, null , "Anti-Zinc" , false), - $Ga (- 31,- 39, 0, -1, null , "Anti-Gallium" , false), - $Ge (- 32,- 40, 0, -1, null , "Anti-Germanium" , false), - $As (- 33,- 42, 0, -1, null , "Anti-Arsenic" , false), - $Se (- 34,- 45, 0, -1, null , "Anti-Selenium" , false), - $Br (- 35,- 45, 0, -1, null , "Anti-Bromine" , false), - $Kr (- 36,- 48, 0, -1, null , "Anti-Krypton" , false), - $Rb (- 37,- 48, 0, -1, null , "Anti-Rubidium" , false), - $Sr (- 38,- 49, 0, -1, null , "Anti-Strontium" , false), - $Y (- 39,- 50, 0, -1, null , "Anti-Yttrium" , false), - $Zr (- 40,- 51, 0, -1, null , "Anti-Zirconium" , false), - $Nb (- 41,- 53, 0, -1, null , "Anti-Niobium" , false), - $Mo (- 42,- 53, 0, -1, null , "Anti-Molybdenum" , false), - $Tc (- 43,- 55, 0, -1, null , "Anti-Technetium" , false), - $Ru (- 44,- 57, 0, -1, null , "Anti-Ruthenium" , false), - $Rh (- 45,- 58, 0, -1, null , "Anti-Rhodium" , false), - $Pd (- 46,- 60, 0, -1, null , "Anti-Palladium" , false), - $Ag (- 47,- 60, 0, -1, null , "Anti-Silver" , false), - $Cd (- 48,- 64, 0, -1, null , "Anti-Cadmium" , false), - $In (- 49,- 65, 0, -1, null , "Anti-Indium" , false), - $Sn (- 50,- 68, 0, -1, null , "Anti-Tin" , false), - $Sb (- 51,- 70, 0, -1, null , "Anti-Antimony" , false), - $Te (- 52,- 75, 0, -1, null , "Anti-Tellurium" , false), - $I (- 53,- 74, 0, -1, null , "Anti-Iodine" , false), - $Xe (- 54,- 77, 0, -1, null , "Anti-Xenon" , false), - $Cs (- 55,- 77, 0, -1, null , "Anti-Caesium" , false), - $Ba (- 56,- 81, 0, -1, null , "Anti-Barium" , false), - $La (- 57,- 81, 0, -1, null , "Anti-Lantanium" , false), - $Ce (- 58,- 82, 0, -1, null , "Anti-Cerium" , false), - $Pr (- 59,- 81, 0, -1, null , "Anti-Praseodymium" , false), - $Nd (- 60,- 84, 0, -1, null , "Anti-Neidymium" , false), - $Pm (- 61,- 83, 0, -1, null , "Anti-Promethium" , false), - $Sm (- 62,- 88, 0, -1, null , "Anti-Samarium" , false), - $Eu (- 63,- 88, 0, -1, null , "Anti-Europium" , false), - $Gd (- 64,- 93, 0, -1, null , "Anti-Gadolinium" , false), - $Tb (- 65,- 93, 0, -1, null , "Anti-Terbium" , false), - $Dy (- 66,- 96, 0, -1, null , "Anti-Dysprosium" , false), - $Ho (- 67,- 97, 0, -1, null , "Anti-Holmium" , false), - $Er (- 68,- 99, 0, -1, null , "Anti-Erbium" , false), - $Tm (- 69,- 99, 0, -1, null , "Anti-Thulium" , false), - $Yb (- 70,-103, 0, -1, null , "Anti-Ytterbium" , false), - $Lu (- 71,-103, 0, -1, null , "Anti-Lutetium" , false), - $Hf (- 72,-106, 0, -1, null , "Anti-Hafnium" , false), - $Ta (- 73,-107, 0, -1, null , "Anti-Tantalum" , false), - $W (- 74,-109, 0, -1, null , "Anti-Wolframium" , false), - $Re (- 75,-111, 0, -1, null , "Anti-Rhenium" , false), - $Os (- 76,-114, 0, -1, null , "Anti-Osmium" , false), - $Ir (- 77,-115, 0, -1, null , "Anti-Iridium" , false), - $Pt (- 78,-117, 0, -1, null , "Anti-Platinum" , false), - $Au (- 79,-117, 0, -1, null , "Anti-Gold" , false), - $Hg (- 80,-120, 0, -1, null , "Anti-Mercury" , false), - $Tl (- 81,-123, 0, -1, null , "Anti-Thallium" , false), - $Pb (- 82,-125, 0, -1, null , "Anti-Lead" , false), - $Bi (- 83,-125, 0, -1, null , "Anti-Bismuth" , false), - $Po (- 84,-124, 0, -1, null , "Anti-Polonium" , false), - $At (- 85,-124, 0, -1, null , "Anti-Astatine" , false), - $Rn (- 86,-134, 0, -1, null , "Anti-Radon" , false), - $Fr (- 87,-134, 0, -1, null , "Anti-Francium" , false), - $Ra (- 88,-136, 0, -1, null , "Anti-Radium" , false), - $Ac (- 89,-136, 0, -1, null , "Anti-Actinium" , false), - $Th (- 90,-140, 0, -1, null , "Anti-Thorium" , false), - $Pa (- 91,-138, 0, -1, null , "Anti-Protactinium" , false), - $U (- 92,-146, 0, -1, null , "Anti-Uranium" , false), - $U_235 (- 92,-143, 0, -1, null , "Anti-Uranium-235" , true), - $Np (- 93,-144, 0, -1, null , "Anti-Neptunium" , false), - $Pu (- 94,-152, 0, -1, null , "Anti-Plutonium" , false), - $Pu_241 (- 94,-149, 0, -1, null , "Anti-Plutonium-241" , true), - $Am (- 95,-150, 0, -1, null , "Anti-Americum" , false), - $Cm (- 96,-153, 0, -1, null , "Anti-Curium" , false), - $Bk (- 97,-152, 0, -1, null , "Anti-Berkelium" , false), - $Cf (- 98,-153, 0, -1, null , "Anti-Californium" , false), - $Es (- 99,-153, 0, -1, null , "Anti-Einsteinium" , false), - $Fm (-100,-157, 0, -1, null , "Anti-Fermium" , false), - $Md (-101,-157, 0, -1, null , "Anti-Mendelevium" , false), - $No (-102,-157, 0, -1, null , "Anti-Nobelium" , false), - $Lr (-103,-159, 0, -1, null , "Anti-Lawrencium" , false), - $Rf (-104,-161, 0, -1, null , "Anti-Rutherfordium" , false), - $Db (-105,-163, 0, -1, null , "Anti-Dubnium" , false), - $Sg (-106,-165, 0, -1, null , "Anti-Seaborgium" , false), - $Bh (-107,-163, 0, -1, null , "Anti-Bohrium" , false), - $Hs (-108,-169, 0, -1, null , "Anti-Hassium" , false), - $Mt (-109,-167, 0, -1, null , "Anti-Meitnerium" , false), - $Ds (-110,-171, 0, -1, null , "Anti-Darmstadtium" , false), - $Rg (-111,-169, 0, -1, null , "Anti-Roentgenium" , false), - $Cn (-112,-173, 0, -1, null , "Anti-Copernicium" , false), - $Uut (-113,-171, 0, -1, null , "Anti-Ununtrium" , false), - $Fl (-114,-175, 0, -1, null , "Anti-Flerovium" , false), - $Uup (-115,-173, 0, -1, null , "Anti-Ununpentium" , false), - $Lv (-116,-177, 0, -1, null , "Anti-Livermorium" , false), - $Uus (-117,-177, 0, -1, null , "Anti-Ununseptium" , false), - $Uuo (-118,-176, 0, -1, null , "Anti-Ununoctium" , false), - - $Ma ( 0, 0,-100, -1, null , "Anti-Magic" , false), - $Nt (0, -10000, 0, -1, null , "Anti-Neutronium" , false); - - public static Element get(String aMaterialName) { - Object tObject = GT_Utility.getFieldContent(Element.class, aMaterialName, false, false); - if (tObject != null && tObject instanceof Element) return (Element)tObject; - return _NULL; - } - - public final long mProtons, mNeutrons, mAdditionalMass, mHalfLifeSeconds; - public final String mName, mDecayTo; - public final boolean mIsIsotope; - - /** - * Links to every pure Material containing just this Element. - */ - public ArrayList<Materials> mLinkedMaterials = new ArrayList<Materials>(); - - /** - * @param aProtons Amount of Protons. Antiprotons if negative. - * @param aNeutrons Amount of Neutrons. Antineutrons if negative. (I could have made mistakes with the Neutron amount calculation, please tell me if I did something wrong) - * @param aHalfLifeSeconds Amount of Half Life this Material has in Seconds. -1 for stable Materials. - * @param aDecayTo String representing the Elements it decays to. Separated by an '&' Character. - * @param aName Name of the Element - */ - private Element(long aProtons, long aNeutrons, long aAdditionalMass, long aHalfLifeSeconds, String aDecayTo, String aName, boolean aIsIsotope) { - mProtons = aProtons; - mNeutrons = aNeutrons; - mAdditionalMass = aAdditionalMass; - mHalfLifeSeconds = aHalfLifeSeconds; - mDecayTo = aDecayTo; - mName = aName; - mIsIsotope = aIsIsotope; - } - - public long getProtons() { - return mProtons; - } - - public long getNeutrons() { - return mNeutrons; - } - - public long getMass() { - return mProtons + mNeutrons + mAdditionalMass; - } - - public static volatile int VERSION = 508; + _NULL(0, 0, 0, -1, null, "", false), + H(1, 0, 0, -1, null, "Hydrogen", false), + D(1, 1, 0, -1, "H", "Deuterium", true), + T(1, 2, 0, -1, "D", "Tritium", true), + He(2, 2, 0, -1, null, "Helium", false), + He_3(2, 1, 0, -1, "H&D", "Helium-3", true), + Li(3, 4, 0, -1, null, "Lithium", false), + Be(4, 5, 0, -1, null, "Beryllium", false), + B(5, 5, 0, -1, null, "Boron", false), + C(6, 6, 0, -1, null, "Carbon", false), + N(7, 7, 0, -1, null, "Nitrogen", false), + O(8, 8, 0, -1, null, "Oxygen", false), + F(9, 9, 0, -1, null, "Fluorine", false), + Ne(10, 10, 0, -1, null, "Neon", false), + Na(11, 11, 0, -1, null, "Sodium", false), + Mg(12, 12, 0, -1, null, "Magnesium", false), + Al(13, 13, 0, -1, null, "Aluminium", false), + Si(14, 14, 0, -1, null, "Silicon", false), + P(15, 15, 0, -1, null, "Phosphorus", false), + S(16, 16, 0, -1, null, "Sulfur", false), + Cl(17, 18, 0, -1, null, "Chlorine", false), + Ar(18, 22, 0, -1, null, "Argon", false), + K(19, 20, 0, -1, null, "Potassium", false), + Ca(20, 20, 0, -1, null, "Calcium", false), + Sc(21, 24, 0, -1, null, "Scandium", false), + Ti(22, 26, 0, -1, null, "Titanium", false), + V(23, 28, 0, -1, null, "Vanadium", false), + Cr(24, 28, 0, -1, null, "Chrome", false), + Mn(25, 30, 0, -1, null, "Manganese", false), + Fe(26, 30, 0, -1, null, "Iron", false), + Co(27, 32, 0, -1, null, "Cobalt", false), + Ni(28, 30, 0, -1, null, "Nickel", false), + Cu(29, 34, 0, -1, null, "Copper", false), + Zn(30, 35, 0, -1, null, "Zinc", false), + Ga(31, 39, 0, -1, null, "Gallium", false), + Ge(32, 40, 0, -1, null, "Germanium", false), + As(33, 42, 0, -1, null, "Arsenic", false), + Se(34, 45, 0, -1, null, "Selenium", false), + Br(35, 45, 0, -1, null, "Bromine", false), + Kr(36, 48, 0, -1, null, "Krypton", false), + Rb(37, 48, 0, -1, null, "Rubidium", false), + Sr(38, 49, 0, -1, null, "Strontium", false), + Y(39, 50, 0, -1, null, "Yttrium", false), + Zr(40, 51, 0, -1, null, "Zirconium", false), + Nb(41, 53, 0, -1, null, "Niobium", false), + Mo(42, 53, 0, -1, null, "Molybdenum", false), + Tc(43, 55, 0, -1, null, "Technetium", false), + Ru(44, 57, 0, -1, null, "Ruthenium", false), + Rh(45, 58, 0, -1, null, "Rhodium", false), + Pd(46, 60, 0, -1, null, "Palladium", false), + Ag(47, 60, 0, -1, null, "Silver", false), + Cd(48, 64, 0, -1, null, "Cadmium", false), + In(49, 65, 0, -1, null, "Indium", false), + Sn(50, 68, 0, -1, null, "Tin", false), + Sb(51, 70, 0, -1, null, "Antimony", false), + Te(52, 75, 0, -1, null, "Tellurium", false), + I(53, 74, 0, -1, null, "Iodine", false), + Xe(54, 77, 0, -1, null, "Xenon", false), + Cs(55, 77, 0, -1, null, "Caesium", false), + Ba(56, 81, 0, -1, null, "Barium", false), + La(57, 81, 0, -1, null, "Lantanium", false), + Ce(58, 82, 0, -1, null, "Cerium", false), + Pr(59, 81, 0, -1, null, "Praseodymium", false), + Nd(60, 84, 0, -1, null, "Neodymium", false), + Pm(61, 83, 0, -1, null, "Promethium", false), + Sm(62, 88, 0, -1, null, "Samarium", false), + Eu(63, 88, 0, -1, null, "Europium", false), + Gd(64, 93, 0, -1, null, "Gadolinium", false), + Tb(65, 93, 0, -1, null, "Terbium", false), + Dy(66, 96, 0, -1, null, "Dysprosium", false), + Ho(67, 97, 0, -1, null, "Holmium", false), + Er(68, 99, 0, -1, null, "Erbium", false), + Tm(69, 99, 0, -1, null, "Thulium", false), + Yb(70, 103, 0, -1, null, "Ytterbium", false), + Lu(71, 103, 0, -1, null, "Lutetium", false), + Hf(72, 106, 0, -1, null, "Hafnium", false), + Ta(73, 107, 0, -1, null, "Tantalum", false), + W(74, 109, 0, -1, null, "Wolframium", false), + Re(75, 111, 0, -1, null, "Rhenium", false), + Os(76, 114, 0, -1, null, "Osmium", false), + Ir(77, 115, 0, -1, null, "Iridium", false), + Pt(78, 117, 0, -1, null, "Platinum", false), + Au(79, 117, 0, -1, null, "Gold", false), + Hg(80, 120, 0, -1, null, "Mercury", false), + Tl(81, 123, 0, -1, null, "Thallium", false), + Pb(82, 125, 0, -1, null, "Lead", false), + Bi(83, 125, 0, -1, null, "Bismuth", false), + Po(84, 124, 0, -1, null, "Polonium", false), + At(85, 124, 0, -1, null, "Astatine", false), + Rn(86, 134, 0, -1, null, "Radon", false), + Fr(87, 134, 0, -1, null, "Francium", false), + Ra(88, 136, 0, -1, null, "Radium", false), + Ac(89, 136, 0, -1, null, "Actinium", false), + Th(90, 140, 0, -1, null, "Thorium", false), + Pa(91, 138, 0, -1, null, "Protactinium", false), + U(92, 146, 0, -1, null, "Uranium", false), + U_235(92, 143, 0, -1, null, "Uranium-235", true), + Np(93, 144, 0, -1, null, "Neptunium", false), + Pu(94, 152, 0, -1, null, "Plutonium", false), + Pu_241(94, 149, 0, -1, null, "Plutonium-241", true), |
