From 69791bd5a4e5fc5ff6d79b0510c572612ce8bae8 Mon Sep 17 00:00:00 2001 From: Quetz4l Date: Fri, 26 May 2023 07:46:03 +0300 Subject: added chisel input busses (#638) * added chisel input busses * fix industrial chisel tooltip * fixes industrial chisel --- .../gregtech/GregtechCustomHatches.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/registration') diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java index 4062003d50..bee1aafbd8 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/registration/gregtech/GregtechCustomHatches.java @@ -5,6 +5,7 @@ import gtPlusPlus.api.objects.Logger; import gtPlusPlus.core.util.minecraft.FluidUtils; import gtPlusPlus.core.util.minecraft.gregtech.PollutionUtils; import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList; +import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEntity_ChiselBus; import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_AirIntake; import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_AirIntake_Extreme; import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_ControlCore; @@ -27,6 +28,7 @@ public class GregtechCustomHatches { } run3(); run4(); + run5(); // Chisel buses } private static void run1() { @@ -274,4 +276,23 @@ public class GregtechCustomHatches { GregtechItemList.Hatch_RTG_MV.set(aHatch2.getStackForm(1L)); GregtechItemList.Hatch_RTG_HV.set(aHatch3.getStackForm(1L)); } + + private static GT_MetaTileEntity_ChiselBus makeChiselBus(int id, String unlocalizedName, String localizedName, + int tier) { + return new GT_MetaTileEntity_ChiselBus(id, unlocalizedName, localizedName, tier); + } + + private static void run5() { + int aID = 31777; + + GregtechItemList.GT_MetaTileEntity_ChiselBus_I + .set((makeChiselBus(aID++, "hatch.chisel.tier.00", "Chisel Bus I", 0)).getStackForm(1L)); + GregtechItemList.GT_MetaTileEntity_ChiselBus_II + .set((makeChiselBus(aID++, "hatch.chisel.tier.01", "Chisel Bus II", 1)).getStackForm(1L)); + GregtechItemList.GT_MetaTileEntity_ChiselBus_III + .set((makeChiselBus(aID++, "hatch.chisel.tier.02", "Chisel Bus III", 2)).getStackForm(1L)); + GregtechItemList.GT_MetaTileEntity_ChiselBus_IV + .set((makeChiselBus(aID++, "hatch.chisel.tier.03", "Chisel Bus IV", 3)).getStackForm(1L)); + + } } -- cgit