From 30fa653d7f65fc8251f27d87ed9d2f2a51f3dde5 Mon Sep 17 00:00:00 2001 From: Zorbatron <46525467+Zorbatron@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:26:59 -0400 Subject: [PATCH] No recipes yet --- .../ZBGTMetaTileEntities.java | 54 ++++++++- .../resources/assets/zbgt/lang/en_us.lang | 110 ++++++++++++++++++ 2 files changed, 163 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zorbatron/zbgt/common/metatileentities/ZBGTMetaTileEntities.java b/src/main/java/com/zorbatron/zbgt/common/metatileentities/ZBGTMetaTileEntities.java index 0e706efe..9def9fe3 100644 --- a/src/main/java/com/zorbatron/zbgt/common/metatileentities/ZBGTMetaTileEntities.java +++ b/src/main/java/com/zorbatron/zbgt/common/metatileentities/ZBGTMetaTileEntities.java @@ -12,6 +12,8 @@ import com.zorbatron.zbgt.common.metatileentities.storage.MetaTileEntityCreativeComputationProvider; import gregtech.api.GTValues; +import gregtech.api.GregTechAPI; +import gregtech.common.metatileentities.multi.multiblockpart.MetaTileEntityLaserHatch; public class ZBGTMetaTileEntities { @@ -27,6 +29,17 @@ public class ZBGTMetaTileEntities { public static MetaTileEntityLargeParallelHatch[] ZBGT_PARALLEL_HATCHES = new MetaTileEntityLargeParallelHatch[7]; public static MetaTileEntityYOTTankMEHatch YOTTANK_ME_HATCH; + public static MetaTileEntityLaserHatch[] LASER_INPUT_HATCH_16384 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_INPUT_HATCH_65536 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_INPUT_HATCH_262144 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_INPUT_HATCH_1048576 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_INPUT_HATCH_4194304 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_OUTPUT_HATCH_16384 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_OUTPUT_HATCH_65536 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_OUTPUT_HATCH_262144 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_OUTPUT_HATCH_1048576 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityLaserHatch[] LASER_OUTPUT_HATCH_4194304 = new MetaTileEntityLaserHatch[10]; // IV+ + public static MetaTileEntityMegaEBF MEGA_EBF; public static MetaTileEntityMegaLCR MEGA_LCR; public static MetaTileEntityMegaVF MEGA_VF; @@ -48,7 +61,7 @@ public class ZBGTMetaTileEntities { public static MetaTileEntityLargeAlloySmelter LARGE_ALLOY_SMELTER; public static void init() { - // 18000-18049 (50) reserved for multiblock parts + // 18000-18049 (50) reserved for my multiblock parts CREATIVE_ENERGY_SOURCE = registerMetaTileEntity(18000, new MetaTileEntityCreativeEnergyHatch(zbgtId("creative_energy_source"), false)); CREATIVE_ENERGY_SINK = registerMetaTileEntity(18001, @@ -141,5 +154,44 @@ public static void init() { QUACKER = registerMetaTileEntity(18069, new MetaTileEntityQuacker(zbgtId("quacker"))); + + // Holy laser hatches batman + int startingId = 18100; + int endPos = GregTechAPI.isHighTier() ? LASER_INPUT_HATCH_16384.length - 1 : + Math.min(LASER_INPUT_HATCH_16384.length - 1, GTValues.UHV - GTValues.IV); + for (int i = 0; i < endPos; i++) { + int v = i + GTValues.IV; + String voltageName = GTValues.VN[v].toLowerCase(); + LASER_INPUT_HATCH_16384[i] = registerMetaTileEntity(startingId + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.target_16384a." + voltageName), false, v, 16_384)); + LASER_OUTPUT_HATCH_16384[i] = registerMetaTileEntity(startingId + 9 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.source_16384a." + voltageName), true, v, 16_384)); + + LASER_INPUT_HATCH_65536[i] = registerMetaTileEntity(startingId + 9 * 2 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.source_65536a." + voltageName), false, v, 65_536)); + LASER_OUTPUT_HATCH_65536[i] = registerMetaTileEntity(startingId + 9 * 3 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.target_65536a." + voltageName), true, v, 65_536)); + + LASER_INPUT_HATCH_262144[i] = registerMetaTileEntity(startingId + 9 * 4 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.target_262144a." + voltageName), false, v, + 262_144)); + LASER_OUTPUT_HATCH_262144[i] = registerMetaTileEntity(startingId + 9 * 5 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.source_262144a." + voltageName), true, v, + 262_144)); + + LASER_INPUT_HATCH_1048576[i] = registerMetaTileEntity(startingId + 9 * 6 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.target_1048576a." + voltageName), false, v, + 1_048_576)); + LASER_OUTPUT_HATCH_1048576[i] = registerMetaTileEntity(startingId + 9 * 7 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.target_1048576a." + voltageName), true, v, + 1_048_576)); + + LASER_INPUT_HATCH_4194304[i] = registerMetaTileEntity(startingId + 9 * 8 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.target_4194304a." + voltageName), false, v, + 4_194_304)); + LASER_OUTPUT_HATCH_4194304[i] = registerMetaTileEntity(startingId + 9 * 9 + i, + new MetaTileEntityLaserHatch(zbgtId("laser_hatch.source_4194304a." + voltageName), true, v, + 4_194_304)); + } } } diff --git a/src/main/resources/assets/zbgt/lang/en_us.lang b/src/main/resources/assets/zbgt/lang/en_us.lang index 0cd4862d..6ac5d621 100644 --- a/src/main/resources/assets/zbgt/lang/en_us.lang +++ b/src/main/resources/assets/zbgt/lang/en_us.lang @@ -70,6 +70,116 @@ zbgt.machine.yottank_me_hatch.priority=Priority zbgt.machine.yottank_me_hatch.sticky.enabled=Disable sticky mode zbgt.machine.yottank_me_hatch.sticky.disabled=Enable sticky mode +zbgt.machine.laser_hatch.source_16384a.iv.name=IV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.luv.name=LuV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.zpm.name=ZPM 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.uv.name=UV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.uhv.name=UHV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.uev.name=UEV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.uiv.name=UIV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.uxv.name=UXV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.opv.name=OpV 16,384A Laser Source Hatch +zbgt.machine.laser_hatch.source_16384a.max.name=MAX 16,384A Laser Source Hatch + +zbgt.machine.laser_hatch.target_16384a.iv.name=IV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.luv.name=LuV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.zpm.name=ZPM 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.uv.name=UV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.uhv.name=UHV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.uev.name=UEV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.uiv.name=UIV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.uxv.name=UXV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.opv.name=OpV 16,384A Laser Target Hatch +zbgt.machine.laser_hatch.target_16384a.max.name=MAX 16,384A Laser Target Hatch + +zbgt.machine.laser_hatch.source_65536a.iv.name=IV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.luv.name=LuV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.zpm.name=ZPM 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.uv.name=UV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.uhv.name=UHV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.uev.name=UEV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.uiv.name=UIV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.uxv.name=UXV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.opv.name=OpV 65,536A Laser Source Hatch +zbgt.machine.laser_hatch.source_65536a.max.name=MAX 65,536A Laser Source Hatch + +zbgt.machine.laser_hatch.target_65536a.iv.name=IV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.luv.name=LuV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.zpm.name=ZPM 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.uv.name=UV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.uhv.name=UHV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.uev.name=UEV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.uiv.name=UIV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.uxv.name=UXV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.opv.name=OpV 65,536A Laser Target Hatch +zbgt.machine.laser_hatch.target_65536a.max.name=MAX 65,536A Laser Target Hatch + +zbgt.machine.laser_hatch.source_262144a.iv.name=IV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.luv.name=LuV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.zpm.name=ZPM 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.uv.name=UV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.uhv.name=UHV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.uev.name=UEV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.uiv.name=UIV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.uxv.name=UXV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.opv.name=OpV 262,144A Laser Source Hatch +zbgt.machine.laser_hatch.source_262144a.max.name=MAX 262,144A Laser Source Hatch + +zbgt.machine.laser_hatch.target_262144a.iv.name=IV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.luv.name=LuV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.zpm.name=ZPM 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.uv.name=UV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.uhv.name=UHV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.uev.name=UEV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.uiv.name=UIV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.uxv.name=UXV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.opv.name=OpV 262,144A Laser Target Hatch +zbgt.machine.laser_hatch.target_262144a.max.name=MAX 262,144A Laser Target Hatch + +zbgt.machine.laser_hatch.source_1048576a.iv.name=IV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.luv.name=LuV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.zpm.name=ZPM 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.uv.name=UV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.uhv.name=UHV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.uev.name=UEV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.uiv.name=UIV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.uxv.name=UXV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.opv.name=OpV 1,048,576A Laser Source Hatch +zbgt.machine.laser_hatch.source_1048576a.max.name=MAX 1,048,576A Laser Source Hatch + +zbgt.machine.laser_hatch.target_1048576a.iv.name=IV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.luv.name=LuV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.zpm.name=ZPM 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.uv.name=UV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.uhv.name=UHV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.uev.name=UEV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.uiv.name=UIV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.uxv.name=UXV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.opv.name=OpV 1,048,576A Laser Target Hatch +zbgt.machine.laser_hatch.target_1048576a.max.name=MAX 1,048,576A Laser Target Hatch + +zbgt.machine.laser_hatch.source_4194304a.iv.name=IV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.luv.name=LuV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.zpm.name=ZPM 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.uv.name=UV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.uhv.name=UHV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.uev.name=UEV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.uiv.name=UIV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.uxv.name=UXV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.opv.name=OpV 4,194,304A Laser Source Hatch +zbgt.machine.laser_hatch.source_4194304a.max.name=MAX 4,194,304A Laser Source Hatch + +zbgt.machine.laser_hatch.target_4194304a.iv.name=IV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.luv.name=LuV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.zpm.name=ZPM 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.uv.name=UV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.uhv.name=UHV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.uev.name=UEV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.uiv.name=UIV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.uxv.name=UXV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.opv.name=OpV 4,194,304A Laser Target Hatch +zbgt.machine.laser_hatch.target_4194304a.max.name=MAX 4,194,304A Laser Target Hatch + # Covers metaitem.cover.dual_cover.lv.name=LV Dual Cover