diff options
author | Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> | 2022-09-11 01:59:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 01:59:07 +0100 |
commit | fe595d51866c8b43fb07b2d8aa3d76ffcbfbc48e (patch) | |
tree | d2ad01823fff33408beb772f75ae24a8ad71d6ac /src/main/java/gregtech/common/misc/GlobalVariableStorage.java | |
parent | 930d4392b82129a413fd23e700a94052ad3e4632 (diff) | |
download | GT5-Unofficial-fe595d51866c8b43fb07b2d8aa3d76ffcbfbc48e.tar.gz GT5-Unofficial-fe595d51866c8b43fb07b2d8aa3d76ffcbfbc48e.tar.bz2 GT5-Unofficial-fe595d51866c8b43fb07b2d8aa3d76ffcbfbc48e.zip |
Fix global wireless EU bugging by transferring to world NBT system (#1371)
* Transfer to NBT
* Half working, write only.
* Fix load data
* Works, thanks Kuba.
* spotlessApply (#1372)
Co-authored-by: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com>
Co-authored-by: GitHub GTNH Actions <>
* Fix NPE in unit tests
* Spotless
* Move clear map
* Spotless and import cleanup
* Suppressions and warning corrections
* Warnings, warnings, warnings smh.
Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>
Co-authored-by: kuba6000 <kuba.123123.6000@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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); + + // ---------------------------------------------------------------------------------------------- + +} |