From d815f1f0e7b267c1c7ef97fdf2c790b6c9f6a378 Mon Sep 17 00:00:00 2001 From: Connor-Colenso <52056774+Connor-Colenso@users.noreply.github.com> Date: Fri, 12 Aug 2022 19:33:19 +0100 Subject: 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> --- .../tileentity/IWirelessEnergyHatchInformation.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main/java/gregtech/api/interfaces/tileentity/IWirelessEnergyHatchInformation.java (limited to 'src/main/java/gregtech/api/interfaces/tileentity') 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; + } +} -- cgit