aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/enums
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
commit0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch)
tree1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/api/enums
parentf8cc82edeb9810c45cba762d733a2c909a302faa (diff)
downloadGT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/api/enums')
-rw-r--r--src/main/java/gregtech/api/enums/ConfigCategories.java4
-rw-r--r--src/main/java/gregtech/api/enums/Dyes.java31
-rw-r--r--src/main/java/gregtech/api/enums/Element.java13
-rw-r--r--src/main/java/gregtech/api/enums/FluidState.java6
-rw-r--r--src/main/java/gregtech/api/enums/GT_HatchElement.java29
-rw-r--r--src/main/java/gregtech/api/enums/GT_Values.java406
-rw-r--r--src/main/java/gregtech/api/enums/HeatingCoilLevel.java33
-rw-r--r--src/main/java/gregtech/api/enums/ItemList.java219
-rw-r--r--src/main/java/gregtech/api/enums/MaterialBuilder.java58
-rw-r--r--src/main/java/gregtech/api/enums/Materials.java685
-rw-r--r--src/main/java/gregtech/api/enums/MaterialsBotania.java119
-rw-r--r--src/main/java/gregtech/api/enums/MaterialsKevlar.java555
-rw-r--r--src/main/java/gregtech/api/enums/MaterialsOreAlum.java72
-rw-r--r--src/main/java/gregtech/api/enums/OrePrefixes.java4177
-rw-r--r--src/main/java/gregtech/api/enums/ParticleFX.java1
-rw-r--r--src/main/java/gregtech/api/enums/SoundResource.java19
-rw-r--r--src/main/java/gregtech/api/enums/SteamVariant.java1
-rw-r--r--src/main/java/gregtech/api/enums/SubTag.java83
-rw-r--r--src/main/java/gregtech/api/enums/TC_Aspects.java24
-rw-r--r--src/main/java/gregtech/api/enums/TextureSet.java352
-rw-r--r--src/main/java/gregtech/api/enums/Textures.java1099
-rw-r--r--src/main/java/gregtech/api/enums/Tier.java891
-rw-r--r--src/main/java/gregtech/api/enums/TierEU.java2
-rw-r--r--src/main/java/gregtech/api/enums/ToolDictNames.java1
24 files changed, 2520 insertions, 6360 deletions
diff --git a/src/main/java/gregtech/api/enums/ConfigCategories.java b/src/main/java/gregtech/api/enums/ConfigCategories.java
index ae4b425e5e..e4a647db22 100644
--- a/src/main/java/gregtech/api/enums/ConfigCategories.java
+++ b/src/main/java/gregtech/api/enums/ConfigCategories.java
@@ -1,6 +1,7 @@
package gregtech.api.enums;
public enum ConfigCategories {
+
news,
general,
machineconfig,
@@ -15,8 +16,7 @@ public enum ConfigCategories {
heatdamage,
oreprocessingoutputmultiplier,
blastfurnacerequirements,
- blastinductionsmelter,
- ;
+ blastinductionsmelter,;
}
public enum Recipes {
diff --git a/src/main/java/gregtech/api/enums/Dyes.java b/src/main/java/gregtech/api/enums/Dyes.java
index 2a546e6138..a0b9f87593 100644
--- a/src/main/java/gregtech/api/enums/Dyes.java
+++ b/src/main/java/gregtech/api/enums/Dyes.java
@@ -1,13 +1,16 @@
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 gregtech.api.interfaces.IColorModulationContainer;
+import gregtech.api.objects.GT_ArrayList;
+import gregtech.api.util.GT_Utility;
+
public enum Dyes implements IColorModulationContainer {
+
/**
* The valid Colors, see VALUES Array below
*/
@@ -38,24 +41,8 @@ public enum Dyes implements IColorModulationContainer {
CONSTRUCTION_FOAM(-1, 64, 64, 64, "Construction Foam"),
MACHINE_METAL(-1, 210, 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 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;
@@ -66,7 +53,7 @@ public enum Dyes implements IColorModulationContainer {
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};
+ mRGBa = new short[] { (short) aR, (short) aG, (short) aB, 0 };
mOriginalRGBa = mRGBa.clone();
}
diff --git a/src/main/java/gregtech/api/enums/Element.java b/src/main/java/gregtech/api/enums/Element.java
index 450a85d3d6..c66b9630a3 100644
--- a/src/main/java/gregtech/api/enums/Element.java
+++ b/src/main/java/gregtech/api/enums/Element.java
@@ -8,6 +8,7 @@ import java.util.Map;
* 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),
@@ -288,18 +289,13 @@ public enum Element {
/**
* @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 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
*/
- Element(
- long aProtons,
- long aNeutrons,
- long aAdditionalMass,
- long aHalfLifeSeconds,
- String aDecayTo,
- String aName,
+ Element(long aProtons, long aNeutrons, long aAdditionalMass, long aHalfLifeSeconds, String aDecayTo, String aName,
boolean aIsIsotope) {
mProtons = aProtons;
mNeutrons = aNeutrons;
@@ -331,6 +327,7 @@ public enum Element {
* A companion object to workaround java limitations
*/
private static final class Companion {
+
/**
* Why is this a separate map and populated by enum constructor instead of a Map prepoluated with values()?
* Because apparently there are people hacking into this enum via EnumHelper.
diff --git a/src/main/java/gregtech/api/enums/FluidState.java b/src/main/java/gregtech/api/enums/FluidState.java
index a6e81ab43d..e84657cc6a 100644
--- a/src/main/java/gregtech/api/enums/FluidState.java
+++ b/src/main/java/gregtech/api/enums/FluidState.java
@@ -1,17 +1,17 @@
package gregtech.api.enums;
public enum FluidState {
+
GAS,
LIQUID,
MOLTEN,
PLASMA,
SLURRY;
- public static final FluidState[] VALID_STATES = new FluidState[] {SLURRY, LIQUID, GAS, PLASMA, MOLTEN};
+ public static final FluidState[] VALID_STATES = new FluidState[] { SLURRY, LIQUID, GAS, PLASMA, MOLTEN };
public static FluidState fromValue(int stateValue) {
- return stateValue >= 0 && stateValue < FluidState.VALID_STATES.length
- ? FluidState.VALID_STATES[stateValue]
+ return stateValue >= 0 && stateValue < FluidState.VALID_STATES.length ? FluidState.VALID_STATES[stateValue]
: FluidState.LIQUID;
}
}
diff --git a/src/main/java/gregtech/api/enums/GT_HatchElement.java b/src/main/java/gregtech/api/enums/GT_HatchElement.java
index 68702f5eb5..8d8603a10e 100644
--- a/src/main/java/gregtech/api/enums/GT_HatchElement.java
+++ b/src/main/java/gregtech/api/enums/GT_HatchElement.java
@@ -1,5 +1,9 @@
package gregtech.api.enums;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
import gregtech.api.interfaces.IHatchElement;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Dynamo;
@@ -13,61 +17,68 @@ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Outpu
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
import gregtech.api.util.GT_ExoticEnergyInputHelper;
import gregtech.api.util.IGT_HatchAdder;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
public enum GT_HatchElement implements IHatchElement<GT_MetaTileEntity_MultiBlockBase> {
+
Muffler(GT_MetaTileEntity_MultiBlockBase::addMufflerToMachineList, GT_MetaTileEntity_Hatch_Muffler.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mMufflerHatches.size();
}
},
- Maintenance(
- GT_MetaTileEntity_MultiBlockBase::addMaintenanceToMachineList, GT_MetaTileEntity_Hatch_Maintenance.class) {
+ Maintenance(GT_MetaTileEntity_MultiBlockBase::addMaintenanceToMachineList,
+ GT_MetaTileEntity_Hatch_Maintenance.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mMaintenanceHatches.size();
}
},
InputHatch(GT_MetaTileEntity_MultiBlockBase::addInputHatchToMachineList, GT_MetaTileEntity_Hatch_Input.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mInputHatches.size();
}
},
InputBus(GT_MetaTileEntity_MultiBlockBase::addInputBusToMachineList, GT_MetaTileEntity_Hatch_InputBus.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mInputBusses.size();
}
},
OutputHatch(GT_MetaTileEntity_MultiBlockBase::addOutputHatchToMachineList, GT_MetaTileEntity_Hatch_Output.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mOutputHatches.size();
}
},
OutputBus(GT_MetaTileEntity_MultiBlockBase::addOutputBusToMachineList, GT_MetaTileEntity_Hatch_OutputBus.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mOutputBusses.size();
}
},
Energy(GT_MetaTileEntity_MultiBlockBase::addEnergyInputToMachineList, GT_MetaTileEntity_Hatch_Energy.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mEnergyHatches.size();
}
},
Dynamo(GT_MetaTileEntity_MultiBlockBase::addDynamoToMachineList, GT_MetaTileEntity_Hatch_Dynamo.class) {
+
@Override
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.mDynamoHatches.size();
}
},
ExoticEnergy(GT_MetaTileEntity_MultiBlockBase::addExoticEnergyInputToMachineList) {
+
@Override
public List<? extends Class<? extends IMetaTileEntity>> mteClasses() {
return GT_ExoticEnergyInputHelper.getAllClasses();
@@ -77,14 +88,14 @@ public enum GT_HatchElement implements IHatchElement<GT_MetaTileEntity_MultiBloc
public long count(GT_MetaTileEntity_MultiBlockBase t) {
return t.getExoticEnergyHatches().size();
}
- },
- ;
+ },;
+
private final List<Class<? extends IMetaTileEntity>> mteClasses;
private final IGT_HatchAdder<GT_MetaTileEntity_MultiBlockBase> adder;
@SafeVarargs
- GT_HatchElement(
- IGT_HatchAdder<GT_MetaTileEntity_MultiBlockBase> adder, Class<? extends IMetaTileEntity>... mteClasses) {
+ GT_HatchElement(IGT_HatchAdder<GT_MetaTileEntity_MultiBlockBase> adder,
+ Class<? extends IMetaTileEntity>... mteClasses) {
this.mteClasses = Collections.unmodifiableList(Arrays.asList(mteClasses));
this.adder = adder;
}
diff --git a/src/main/java/gregtech/api/enums/GT_Values.java b/src/main/java/gregtech/api/enums/GT_Values.java
index 8cadd17246..ef921a0339 100644
--- a/src/main/java/gregtech/api/enums/GT_Values.java
+++ b/src/main/java/gregtech/api/enums/GT_Values.java
@@ -1,12 +1,8 @@
package gregtech.api.enums;
-import gregtech.api.fluid.FluidTankGT;
-import gregtech.api.interfaces.IIconContainer;
-import gregtech.api.interfaces.internal.IGT_Mod;
-import gregtech.api.interfaces.internal.IGT_RecipeAdder;
-import gregtech.api.net.IGT_NetworkHandler;
import java.math.BigInteger;
import java.util.*;
+
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.world.World;
@@ -15,12 +11,20 @@ import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidTank;
import net.minecraftforge.oredict.OreDictionary;
+import gregtech.api.fluid.FluidTankGT;
+import gregtech.api.interfaces.IIconContainer;
+import gregtech.api.interfaces.internal.IGT_Mod;
+import gregtech.api.interfaces.internal.IGT_RecipeAdder;
+import gregtech.api.net.IGT_NetworkHandler;
+
/**
* Made for static imports, this Class is just a Helper.
* <p/>
- * I am doing this to have a better Table alike view on my Code, so I can change things faster using the Block Selection Mode of eclipse.
+ * I am doing this to have a better Table alike view on my Code, so I can change things faster using the Block Selection
+ * Mode of eclipse.
* <p/>
- * Go to "Window > Preferences > Java > Editor > Content Assist > Favorites" to set static importable Constant Classes such as this one as AutoCompleteable.
+ * Go to "Window > Preferences > Java > Editor > Content Assist > Favorites" to set static importable Constant Classes
+ * such as this one as AutoCompleteable.
*/
@SuppressWarnings("unused") // API Legitimately has unused fields and methods
public class GT_Values {
@@ -39,31 +43,19 @@ public class GT_Values {
* The first 32 Bits
*/
@SuppressWarnings("PointlessBitwiseExpression") // Nicer source layout this way
- public static final int[] B = new int[] {
- 1 << 0, 1 << 1, 1 << 2,
- 1 << 3, 1 << 4, 1 << 5,
- 1 << 6, 1 << 7, 1 << 8,
- 1 << 9, 1 << 10, 1 << 11,
- 1 << 12, 1 << 13, 1 << 14,
- 1 << 15, 1 << 16, 1 << 17,
- 1 << 18, 1 << 19, 1 << 20,
- 1 << 21, 1 << 22, 1 << 23,
- 1 << 24, 1 << 25, 1 << 26,
- 1 << 27, 1 << 28, 1 << 29,
- 1 << 30, 1 << 31
- };
+ public static final int[] B = new int[] { 1 << 0, 1 << 1, 1 << 2, 1 << 3, 1 << 4, 1 << 5, 1 << 6, 1 << 7, 1 << 8,
+ 1 << 9, 1 << 10, 1 << 11, 1 << 12, 1 << 13, 1 << 14, 1 << 15, 1 << 16, 1 << 17, 1 << 18, 1 << 19, 1 << 20,
+ 1 << 21, 1 << 22, 1 << 23, 1 << 24, 1 << 25, 1 << 26, 1 << 27, 1 << 28, 1 << 29, 1 << 30, 1 << 31 };
/**
* Renamed from "MATERIAL_UNIT" to just "M"
* <p/>
- * This is worth exactly one normal Item.
- * This Constant can be divided by many commonly used Numbers such as
- * 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, ... 64 or 81
- * without losing precision and is for that reason used as Unit of Amount.
- * But it is also small enough to be multiplied with larger Numbers.
+ * This is worth exactly one normal Item. This Constant can be divided by many commonly used Numbers such as 1, 2,
+ * 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, ... 64 or 81 without losing precision and is for that
+ * reason used as Unit of Amount. But it is also small enough to be multiplied with larger Numbers.
* <p/>
- * This is used to determine the amount of Material contained inside a prefixed Ore.
- * For example Nugget = M / 9 as it contains out of 1/9 of an Ingot.
+ * This is used to determine the amount of Material contained inside a prefixed Ore. For example Nugget = M / 9 as
+ * it contains out of 1/9 of an Ingot.
*/
public static final long M = 3628800;
@@ -82,26 +74,18 @@ public class GT_Values {
/**
* The Voltage Tiers. Use this Array instead of the old named Voltage Variables
*/
- public static final long[] V = new long[] {
- 8L, 32L, 128L,
- 512L, 2048L, 8192L,
- 32_768L, 131_072L, 524_288L,
- 2_097_152L, 8_388_608L, 33_554_432L,
- 134_217_728L, 536_870_912L, Integer.MAX_VALUE - 7,
- // Error tier to prevent out of bounds errors. Not really a real tier (for now).
- 8_589_934_592L
- };
+ public static final long[] V = new long[] { 8L, 32L, 128L, 512L, 2048L, 8192L, 32_768L, 131_072L, 524_288L,
+ 2_097_152L, 8_388_608L, 33_554_432L, 134_217_728L, 536_870_912L, Integer.MAX_VALUE - 7,
+ // Error tier to prevent out of bounds errors. Not really a real tier (for now).
+ 8_589_934_592L };
/**
- * The Voltage Practical. These are recipe voltage you should use if you expect the recipe to use a full amp of
- * that tier. These leave a bit of headroom for cable and transformer losses, but not enough to make it a great gain.
+ * The Voltage Practical. These are recipe voltage you should use if you expect the recipe to use a full amp of that
+ * tier. These leave a bit of headroom for cable and transformer losses, but not enough to make it a great gain.
*/
// this will correctly map ULV to 7.
- public static final long[] VP = Arrays.stream(V)
- .map(i -> BigInteger.valueOf(i)
- .multiply(BigInteger.valueOf(30))
- .divide(BigInteger.valueOf(32))
- .longValueExact())
+ public static final long[] VP = Arrays.stream(V).map(
+ i -> BigInteger.valueOf(i).multiply(BigInteger.valueOf(30)).divide(BigInteger.valueOf(32)).longValueExact())
.toArray();
// Why -7? Mystery of the universe. Something may break if you change this so please do not without extensive
// testing.
@@ -109,7 +93,7 @@ public class GT_Values {
// TODO:tier 14,15 wires and transformers only (not even cables !!!)
// TODO:tier 12,13 the above + batteries, battery buffers, (maybe cables,12 also works for machines)
// TODO:tier 10,11 the above + chargers and other machines, (cables would be nice)
- // TODO:tier 9 machines and batteries
+ // TODO:tier 9 machines and batteries
// TODO:AND ALL THE MATERIALS... for that
// TODO:LIST OF MACHINES WITH POINTLESS TIERS (unless you implement some other tiering mechanism like reducing eu
@@ -118,140 +102,110 @@ public class GT_Values {
/**
* Array of Maximum Amperes at given Tier index
- * <p>keeping Voltage*Amps < Integer.MAX_VALUE-7 for machines (and tier logic 4x EUt 2/ time)</p>
- * <p>AMV[4]= max amps at tier 4</p>
- */
- public static final long[] AatV = new long[] {
- 268435455, 67108863, 16777215,
- 4194303, 1048575, 262143,
- 65535, 16383, 4095,
- 1023, 255, 63,
- 15, 3, 1,
- 1
- };
+ * <p>
+ * keeping Voltage*Amps < Integer.MAX_VALUE-7 for machines (and tier logic 4x EUt 2/ time)
+ * </p>
+ * <p>
+ * AMV[4]= max amps at tier 4
+ * </p>
+ */
+ public static final long[] AatV = new long[] { 268435455, 67108863, 16777215, 4194303, 1048575, 262143, 65535,
+ 16383, 4095, 1023, 255, 63, 15, 3, 1, 1 };
/**
* The short Names for the Voltages
*/
- public static final String[] VN = new String[] {
- "ULV", // 0
- "LV", // 1
- "MV", // 2
- "HV", // 3
- "EV", // 4
- "IV", // 5
- "LuV", // 6
- "ZPM", // 7
- "UV", // 8
- "UHV", // 9
- "UEV", // 10
- "UIV", // 11
- "UMV", // 12
- "UXV", // 13
- "MAX", // 14
- "ERROR VOLTAGE" // 15
+ public static final String[] VN = new String[] { "ULV", // 0
+ "LV", // 1
+ "MV", // 2
+ "HV", // 3
+ "EV", // 4
+ "IV", // 5
+ "LuV", // 6
+ "ZPM", // 7
+ "UV", // 8
+ "UHV", // 9
+ "UEV", // 10
+ "UIV", // 11
+ "UMV", // 12
+ "UXV", // 13
+ "MAX", // 14
+ "ERROR VOLTAGE" // 15
};
/**
* The long Names for the Voltages
*/
- public static final String[] VOLTAGE_NAMES = new String[] {
- "Ultra Low Voltage", // 0
- "Low Voltage", // 1
- "Medium Voltage", // 2
- "High Voltage", // 3
- "Extreme Voltage", // 4
- "Insane Voltage", // 5
- "Ludicrous Voltage", // 6
- "ZPM Voltage", // 7
- "Ultimate Voltage", // 8
- "Ultimate High Voltage", // 9
- "Ultimate Extreme Voltage", // 10
- "Ultimate Insane Voltage", // 11
- "Ultimate Mega Voltage", // 12
- "Ultimate Extended Mega Voltage", // 13
- "Maximum Voltage", // 14
- "Error Voltage, report this" // 15
+ public static final String[] VOLTAGE_NAMES = new String[] { "Ultra Low Voltage", // 0
+ "Low Voltage", // 1
+ "Medium Voltage", // 2
+ "High Voltage", // 3
+ "Extreme Voltage", // 4
+ "Insane Voltage", // 5
+ "Ludicrous Voltage", // 6
+ "ZPM Voltage", // 7
+ "Ultimate Voltage", // 8
+ "Ultimate High Voltage", // 9
+ "Ultimate Extreme Voltage", // 10
+ "Ultimate Insane Voltage", // 11
+ "Ultimate Mega Voltage", // 12
+ "Ultimate Extended Mega Voltage", // 13
+ "Maximum Voltage", // 14
+ "Error Voltage, report this" // 15
};
- public static final String[] TIER_COLORS = new String[] {
- EnumChatFormatting.RED.toString(), // ULV, 0
- EnumChatFormatting.GRAY.toString(), // LV, 1
- EnumChatFormatting.GOLD.toString(), // MV, 2
- EnumChatFormatting.YELLOW.toString(), // HV, 3
- EnumChatFormatting.DARK_GRAY.toString(), // EV, 4
- EnumChatFormatting.GREEN.toString(), // IV, 5
- EnumChatFormatting.LIGHT_PURPLE.toString(), // LuV, 6
- EnumChatFormatting.AQUA.toString(), // ZPM, 7
- EnumChatFormatting.DARK_GREEN.toString(), // UV, 8
- EnumChatFormatting.DARK_RED.toString(), // UHV, 9
- EnumChatFormatting.DARK_PURPLE.toString(), // UEV, 10
- EnumChatFormatting.DARK_BLUE.toString() + EnumChatFormatting.BOLD.toString(), // UIV, 11
- EnumChatFormatting.RED.toString()
- + EnumChatFormatting.BOLD.toString()
- + EnumChatFormatting.UNDERLINE.toString(), // UMV, 12
- EnumChatFormatting.DARK_RED.toString()
- + EnumChatFormatting.BOLD.toString()
- + EnumChatFormatting.UNDERLINE.toString(), // UXV, 13
- EnumChatFormatting.WHITE.toString()
- + EnumChatFormatting.BOLD.toString()
- + EnumChatFormatting.UNDERLINE.toString(), // MAX, 14
- EnumChatFormatting.OBFUSCATED.toString() // ~~~, 15
+ public static final String[] TIER_COLORS = new String[] { EnumChatFormatting.RED.toString(), // ULV, 0
+ EnumChatFormatting.GRAY.toString(), // LV, 1
+ EnumChatFormatting.GOLD.toString(), // MV, 2
+ EnumChatFormatting.YELLOW.toString(), // HV, 3
+ EnumChatFormatting.DARK_GRAY.toString(), // EV, 4
+ EnumChatFormatting.GREEN.toString(), // IV, 5
+ EnumChatFormatting.LIGHT_PURPLE.toString(), // LuV, 6
+ EnumChatFormatting.AQUA.toString(), // ZPM, 7
+ EnumChatFormatting.DARK_GREEN.toString(), // UV, 8
+ EnumChatFormatting.DARK_RED.toString(), // UHV, 9
+ EnumChatFormatting.DARK_PURPLE.toString(), // UEV, 10
+ EnumChatFormatting.DARK_BLUE.toString() + EnumChatFormatting.BOLD.toString(), // UIV, 11
+ EnumChatFormatting.RED.toString() + EnumChatFormatting.BOLD.toString()
+ + EnumChatFormatting.UNDERLINE.toString(), // UMV, 12
+ EnumChatFormatting.DARK_RED.toString() + EnumChatFormatting.BOLD.toString()
+ + EnumChatFormatting.UNDERLINE.toString(), // UXV, 13
+ EnumChatFormatting.WHITE.toString() + EnumChatFormatting.BOLD.toString()
+ + EnumChatFormatting.UNDERLINE.toString(), // MAX, 14
+ EnumChatFormatting.OBFUSCATED.toString() // ~~~, 15
};
/**
- * This way it is possible to have a Call Hierarchy of NullPointers in ItemStack based Functions, and also because most of the time I don't know what kind of Data Type the "null" stands for
+ * This way it is possible to have a Call Hierarchy of NullPointers in ItemStack based Functions, and also because
+ * most of the time I don't know what kind of Data Type the "null" stands for
*/
public static final ItemStack NI = null;
/**
- * This way it is possible to have a Call Hierarchy of NullPointers in FluidStack based Functions, and also because most of the time I don't know what kind of Data Type the "null" stands for
+ * This way it is possible to have a Call Hierarchy of NullPointers in FluidStack based Functions, and also because
+ * most of the time I don't know what kind of Data Type the "null" stands for
*/
public static final FluidStack NF = null;
/**
* MOD ID Strings, since they are very common Parameters.
*/
- public static final String MOD_ID = "gregtech",
- MOD_ID_IC2 = "IC2",
- MOD_ID_NC = "IC2NuclearControl",
- MOD_ID_TC = "Thaumcraft",
- MOD_ID_TF = "TwilightForest",
- MOD_ID_RC = "Railcraft",
- MOD_ID_TE = "ThermalExpansion",
- MOD_ID_AE = "appliedenergistics2",
- MOD_ID_TFC = "terrafirmacraft",
- MOD_ID_PFAA = "PFAAGeologica",
- MOD_ID_FR = "Forestry",
- MOD_ID_HaC = "harvestcraft",
- MOD_ID_APC = "AppleCore",
- MOD_ID_MaCr = "magicalcrops",
- MOD_ID_GaEn = "ganysend",
- MOD_ID_GaSu = "ganyssurface",
- MOD_ID_GaNe = "ganysnether",
- MOD_ID_BC_SILICON = "BuildCraft|Silicon",
- MOD_ID_BC_TRANSPORT = "BuildCraft|Transport",
- MOD_ID_BC_FACTORY = "BuildCraft|Factory",
- MOD_ID_BC_ENERGY = "BuildCraft|Energy",
- MOD_ID_BC_BUILDERS = "BuildCraft|Builders",
- MOD_ID_BC_CORE = "BuildCraft|Core",
- MOD_ID_GC_CORE = "GalacticraftCore",
- MOD_ID_GC_MARS = "GalacticraftMars",
- MOD_ID_GC_PLANETS = "GalacticraftPlanets",
- MOD_ID_DC = "dreamcraft",
+ public static final String MOD_ID = "gregtech", MOD_ID_IC2 = "IC2", MOD_ID_NC = "IC2NuclearControl",
+ MOD_ID_TC = "Thaumcraft", MOD_ID_TF = "TwilightForest", MOD_ID_RC = "Railcraft",
+ MOD_ID_TE = "ThermalExpansion", MOD_ID_AE = "appliedenergistics2", MOD_ID_TFC = "terrafirmacraft",
+ MOD_ID_PFAA = "PFAAGeologica", MOD_ID_FR = "Forestry", MOD_ID_HaC = "harvestcraft",
+ MOD_ID_APC = "AppleCore", MOD_ID_MaCr = "magicalcrops", MOD_ID_GaEn = "ganysend",
+ MOD_ID_GaSu = "ganyssurface", MOD_ID_GaNe = "ganysnether", MOD_ID_BC_SILICON = "BuildCraft|Silicon",
+ MOD_ID_BC_TRANSPORT = "BuildCraft|Transport", MOD_ID_BC_FACTORY = "BuildCraft|Factory",
+ MOD_ID_BC_ENERGY = "BuildCraft|Energy", MOD_ID_BC_BUILDERS = "BuildCraft|Builders",
+ MOD_ID_BC_CORE = "BuildCraft|Core", MOD_ID_GC_CORE = "GalacticraftCore",
+ MOD_ID_GC_MARS = "GalacticraftMars", MOD_ID_GC_PLANETS = "GalacticraftPlanets", MOD_ID_DC = "dreamcraft",
MOD_ID_GTPP = "miscutils";
/**
* File Paths and Resource Paths
*/
- public static final String TEX_DIR = "textures/",
- TEX_DIR_GUI = TEX_DIR + "gui/",
- TEX_DIR_ITEM = TEX_DIR + "items/",
- TEX_DIR_BLOCK = TEX_DIR + "blocks/",
- TEX_DIR_ENTITY = TEX_DIR + "entity/",
- TEX_DIR_ASPECTS = TEX_DIR + "aspects/",
- RES_PATH = MOD_ID + ":" + TEX_DIR,
- RES_PATH_GUI = MOD_ID + ":" + TEX_DIR_GUI,
- RES_PATH_ITEM = MOD_ID + ":",
- RES_PATH_BLOCK = MOD_ID + ":",
- RES_PATH_ENTITY = MOD_ID + ":" + TEX_DIR_ENTITY,
- RES_PATH_ASPECTS = MOD_ID + ":" + TEX_DIR_ASPECTS,
+ public static final String TEX_DIR = "textures/", TEX_DIR_GUI = TEX_DIR + "gui/", TEX_DIR_ITEM = TEX_DIR + "items/",
+ TEX_DIR_BLOCK = TEX_DIR + "blocks/", TEX_DIR_ENTITY = TEX_DIR + "entity/",
+ TEX_DIR_ASPECTS = TEX_DIR + "aspects/", RES_PATH = MOD_ID + ":" + TEX_DIR,
+ RES_PATH_GUI = MOD_ID + ":" + TEX_DIR_GUI, RES_PATH_ITEM = MOD_ID + ":", RES_PATH_BLOCK = MOD_ID + ":",
+ RES_PATH_ENTITY = MOD_ID + ":" + TEX_DIR_ENTITY, RES_PATH_ASPECTS = MOD_ID + ":" + TEX_DIR_ASPECTS,
RES_PATH_IC2 = MOD_ID_IC2.toLowerCase(Locale.ENGLISH) + ":",
RES_PATH_MODEL = MOD_ID + ":" + TEX_DIR + "models/";
@@ -259,6 +213,7 @@ public class GT_Values {
* NBT String Keys
*/
public static final class NBT {
+
public static final String COLOR = "gt.color", // Integer
COVERS = "gt.covers", // String
CUSTOM_NAME = "name", // String
@@ -287,10 +242,7 @@ public class GT_Values {
INV_OUTPUT_LIST = "gt.invlist.out", // NBT List
// MultiBlock
- STRUCTURE_OK = "gt.structure.ok",
- ROTATION = "gt.eRotation",
- FLIP = "gt.eFlip",
- TARGET = "gt.target", // Boolean
+ STRUCTURE_OK = "gt.structure.ok", ROTATION = "gt.eRotation", FLIP = "gt.eFlip", TARGET = "gt.target", // Boolean
TARGET_X = "gt.target.x", // Number
TARGET_Y = "gt.target.y", // Number
TARGET_Z = "gt.target.z", // Number
@@ -300,66 +252,53 @@ public class GT_Values {
}
/** The Color White as RGB Short Array. */
- public static final short[] UNCOLORED_RBGA = {255, 255, 255, 255};
+ public static final short[] UNCOLORED_RBGA = { 255, 255, 255, 255 };
/** The Color White as simple Integer (0x00ffffff). */
public static final int UNCOLORED = 0x00ffffff;
/**
* Sides
*/
- public static final byte SIDE_BOTTOM = 0,
- SIDE_DOWN = 0,
- SIDE_TOP = 1,
- SIDE_UP = 1,
- SIDE_NORTH = 2, // Also a Side with a stupidly mirrored Texture
- SIDE_SOUTH = 3,
- SIDE_WEST = 4,
- SIDE_EAST = 5, // Also a Side with a stupidly mirrored Texture
- SIDE_ANY = 6,
- SIDE_UNKNOWN = 6,
- SIDE_INVALID = 6,
- SIDE_INSIDE = 6,
- SIDE_UNDEFINED = 6;
+ public static final byte SIDE_BOTTOM = 0, SIDE_DOWN = 0, SIDE_TOP = 1, SIDE_UP = 1, SIDE_NORTH = 2, // Also a Side
+ // with a
+ // stupidly
+ // mirrored
+ // Texture
+ SIDE_SOUTH = 3, SIDE_WEST = 4, SIDE_EAST = 5, // Also a Side with a stupidly mirrored Texture
+ SIDE_ANY = 6, SIDE_UNKNOWN = 6, SIDE_INVALID = 6, SIDE_INSIDE = 6, SIDE_UNDEFINED = 6;
/** Compass alike Array for the proper ordering of North, East, South and West. */
- public static final byte[] COMPASS_DIRECTIONS = {SIDE_NORTH, SIDE_EAST, SIDE_SOUTH, SIDE_WEST};
+ public static final byte[] COMPASS_DIRECTIONS = { SIDE_NORTH, SIDE_EA