Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High amperage laser hatches #54

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -28,6 +30,17 @@ public class ZBGTMetaTileEntities {
public static MetaTileEntityYOTTankMEHatch YOTTANK_ME_HATCH;
public static MetaTileEntitySterileCleaningHatch STERILE_CLEANING_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;
Expand All @@ -49,7 +62,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,
Expand Down Expand Up @@ -145,5 +158,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));
}
}
}
110 changes: 110 additions & 0 deletions src/main/resources/assets/zbgt/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,116 @@ zbgt.machine.yottank_me_hatch.sticky.disabled=Enable sticky mode
zbgt.machine.sterile_cleaning_hatch.name=Automatic Sterilization Maintenance Hatch
zbgt.machine.sterile_cleaning_hatch.tooltip=For automatically maintaining Multiblocks with Cleaning, but sterile!

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
Expand Down