diff options
Diffstat (limited to 'src/main/java/gregtech/common/misc/GlobalVariableStorage.java')
-rw-r--r-- | src/main/java/gregtech/common/misc/GlobalVariableStorage.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/misc/GlobalVariableStorage.java b/src/main/java/gregtech/common/misc/GlobalVariableStorage.java new file mode 100644 index 0000000000..5ec0ed9c82 --- /dev/null +++ b/src/main/java/gregtech/common/misc/GlobalVariableStorage.java @@ -0,0 +1,21 @@ +package gregtech.common.misc; + +import java.math.BigInteger; +import java.util.HashMap; + +public abstract class GlobalVariableStorage { + // --------------------- NEVER access these maps! Use the methods provided! --------------------- + + // Global EU map. + public static HashMap<String, BigInteger> GlobalEnergy = new HashMap<>(100, 0.9f); + + // Maps user IDs to usernames and vice versa. Seems redundant but this makes accessing this + // easier in certain locations (like gt commands). + public static HashMap<String, String> GlobalEnergyName = new HashMap<>(100, 0.9f); + + // Maps UUIDs to other UUIDs. This allows users to join a team. + public static HashMap<String, String> GlobalEnergyTeam = new HashMap<>(100, 0.9f); + + // ---------------------------------------------------------------------------------------------- + +} |