aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces/tileentity
diff options
context:
space:
mode:
authorConnor-Colenso <52056774+Connor-Colenso@users.noreply.github.com>2022-08-12 19:33:19 +0100
committerGitHub <noreply@github.com>2022-08-12 20:33:19 +0200
commitd815f1f0e7b267c1c7ef97fdf2c790b6c9f6a378 (patch)
treed042d89edf9a381b506d9ec4799fb940eabc203a /src/main/java/gregtech/api/interfaces/tileentity
parent12e9cf136d16435a6168402831c1a42dca75c3e1 (diff)
downloadGT5-Unofficial-d815f1f0e7b267c1c7ef97fdf2c790b6c9f6a378.tar.gz
GT5-Unofficial-d815f1f0e7b267c1c7ef97fdf2c790b6c9f6a378.tar.bz2
GT5-Unofficial-d815f1f0e7b267c1c7ef97fdf2c790b6c9f6a378.zip
More wireless fixes/updates (#1206)
* Fix possible out-of-bounds error. * Bye bye OpV * Bye bye OpV * Some textures while I'm here * Test * Maybe * New command * Fix forge minecraft shenanigans interfering with saving data. * Localisation of achievements * Add save intervals for energy map. * Refactor as to not use dumb bloat * New interface for wireless hatches * Remove prefix * Big refactor and code cleanup. Also fixes bug with energy not getting added sometimes * Fix typo causing ore dict issues * New interface * Clean up commands a little * Add some colouring and clean up a little. * Update desc * Add more catches for command misuse and colours * Jenkins Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/tileentity')
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IWirelessEnergyHatchInformation.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IWirelessEnergyHatchInformation.java b/src/main/java/gregtech/api/interfaces/tileentity/IWirelessEnergyHatchInformation.java
new file mode 100644
index 0000000000..fb6492d894
--- /dev/null
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IWirelessEnergyHatchInformation.java
@@ -0,0 +1,19 @@
+package gregtech.api.interfaces.tileentity;
+
+import static gregtech.api.enums.GT_Values.V;
+
+public interface IWirelessEnergyHatchInformation {
+
+ // This interface is solely for usage by wireless hatches/dynamos.
+
+ // Ticks between energy additions to the hatch. For a dynamo this is how many ticks between energy being consumed
+ // and added to the global energy map.
+ long ticks_between_energy_addition = 100L * 20L;
+
+ // Total number of energy additions this multi can store before it is full.
+ long number_of_energy_additions = 4L;
+
+ default long totalStorage(long tier_eu_per_tick) {
+ return tier_eu_per_tick * ticks_between_energy_addition * number_of_energy_additions;
+ }
+}