aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/enums/GT_Values.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/enums/GT_Values.java')
-rw-r--r--src/main/java/gregtech/api/enums/GT_Values.java96
1 files changed, 95 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/enums/GT_Values.java b/src/main/java/gregtech/api/enums/GT_Values.java
index e41eafab78..6dca327429 100644
--- a/src/main/java/gregtech/api/enums/GT_Values.java
+++ b/src/main/java/gregtech/api/enums/GT_Values.java
@@ -55,7 +55,7 @@ public class GT_Values {
* 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 loosing precision and is for that reason used as Unit of Amount.
+ * 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.
@@ -195,6 +195,98 @@ public class GT_Values {
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/";
+
+ /**
+ * NBT String Keys
+ */
+ public static class NBT {
+ public static final String
+ COLOR = "gt.color", // Integer
+ CUSTOM_NAME = "name", // String
+ DISPAY = "gt.display", // String
+ FACING = "gt.facing", // Byte
+ HIDDEN = "gt.hidden", // Boolean
+ LOCK_UPGRADE = "gt.locked", // Boolean
+ MATERIAL = "gt.material", // String containing the Material Name.
+ MODE = "gt.mode", // Number
+ ALLOWED_MODES = "gt.amode", // Number
+ MTE_ID = "gt.mte.id", // Containing the MTE ID
+ MTE_REG = "gt.mte.reg", // Containing the MTE Registry ID
+ OWNER = "gt.owner", // String
+ OWNER_UUID = "gt.ownerUuid", // UUID (String)
+
+ // Machines
+ FLUID_OUT = "gt.fluidout", // Output Fluid
+ INV_OUT = "gt.invout", // ItemStack
+ PARALLEL = "gt.parallel", // Number
+ TANK_CAPACITY = "gt.tankcap", // Number
+ TANK_IN = "gt.tank.in.", // FluidStack
+ TANK_OUT = "gt.tank.out.", // FluidStack
+ TEXTURE = "gt.texture", // String
+ INV_SIZE = "gt.invsize", // Number
+ INV_LIST = "gt.invlist", // NBT List
+
+ // MultiBlock
+ 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
+
+ empty_ = "";
+ }
+
+
+ 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;
+
+ /** 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};
+
+
+ /**
+ * An Array containing all Sides which follow the Condition, in order to iterate over them for example.
+ */
+ public static final byte[]
+ ALL_SIDES = {0,1,2,3,4,5,6},
+ ALL_VALID_SIDES = {0,1,2,3,4,5 };
+
+ /**
+ * For Facing Checks.
+ */
+
+ public static final boolean[]
+ INVALID_SIDES = { false, false, false, false, false, false, true },
+ VALID_SIDES = { true, true, true, true, true, true, false };
+
+
+ /**
+ * Side->Offset Mappings.
+ */
+ public static final byte[]
+ OFFX = { 0, 0, 0, 0,-1,+1, 0},
+ OFFY = {-1,+1, 0, 0, 0, 0, 0},
+ OFFZ = { 0, 0,-1,+1, 0, 0, 0};
+
+ /**
+ * Side->Opposite Mappings.
+ **/
+ public static final byte[]
+ OPOS = { 1, 0, 3, 2, 5, 4, 6};
+
/**
* The Mod Object itself. That is the GT_Mod-Object. It's needed to open GUI's and similar.
*/
@@ -316,4 +408,6 @@ public class GT_Values {
public static boolean disableDigitalChestsExternalAccess = false;
public static boolean lateConfigSave = true;
public static boolean worldTickHappened = false;
+
+ public static final int[] emptyIntArray = new int[0];
}