aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGDCloud <93287602+GDCloudstrike@users.noreply.github.com>2023-03-25 16:57:11 +0100
committerGitHub <noreply@github.com>2023-03-25 16:57:11 +0100
commit603c64a414acdcd36d1f1c5771bfe724a830a6f3 (patch)
treed83527132bb257e281f11677555ac5533231be30 /src
parentce1bdeae81288c7adf0b2b9ed09fef4c76203584 (diff)
downloadGT5-Unofficial-603c64a414acdcd36d1f1c5771bfe724a830a6f3.tar.gz
GT5-Unofficial-603c64a414acdcd36d1f1c5771bfe724a830a6f3.tar.bz2
GT5-Unofficial-603c64a414acdcd36d1f1c5771bfe724a830a6f3.zip
Add Humongous input hatch (#304)
* add hatches * recipes * Revert "recipes" This reverts commit 2cfaea1e6e352779c667d9311d7d96a831b614ac [formerly 24b9a89047f09531f51d2eb87e403d6c247e9750]. * Revert "add hatches" This reverts commit c6a23b975ce81ae2a4299d0beed0f24b9393534e [formerly 88b53666ed38948b5ee350349000575e3dae9af8]. * add humongous input hatch * number formatting * spotless * Update GT_MetaTileEntity_HumongousInputHatch.java * more number formatting --------- Co-authored-by: Martin Robertz <dream-master@gmx.net> Former-commit-id: e2d99f461606e21d202343a5bb85fcb6bceb377d
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java5
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_CompressedFluidHatch.java4
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_HumongousInputHatch.java52
3 files changed, 59 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java
index c88438b9c0..fca9c5ed52 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/ItemRegistry.java
@@ -212,6 +212,7 @@ public class ItemRegistry {
public static ItemStack cal;
public static ItemStack compressedHatch;
public static ItemStack giantOutputHatch;
+ public static ItemStack humongousInputHatch;
public static ItemStack[][][] TecTechLaserAdditions = new ItemStack[3][4][4];
public static ItemStack TecTechPipeEnergyLowPower;
@@ -351,6 +352,10 @@ public class ItemRegistry {
ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 9,
"GiantOutputHatch",
"Giant Output Hatch").getStackForm(1L);
+ ItemRegistry.humongousInputHatch = new GT_MetaTileEntity_HumongousInputHatch(
+ ConfigHandler.IDOffset + GT_Values.VN.length * 9 + 55,
+ "HumongousInputHatch",
+ "Humongous Input Hatch").getStackForm(1L);
ItemRegistry.megaMachines[2] = new GT_TileEntity_MegaDistillTower(
ConfigHandler.IDOffset + GT_Values.VN.length * 8 + 10,
"MegaDistillationTower",
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_CompressedFluidHatch.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_CompressedFluidHatch.java
index b917fe90fc..b217d29445 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_CompressedFluidHatch.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_CompressedFluidHatch.java
@@ -27,7 +27,7 @@ public class GT_MetaTileEntity_CompressedFluidHatch extends GT_MetaTileEntity_Ha
public GT_MetaTileEntity_CompressedFluidHatch(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional, 0);
- this.mDescriptionArray[1] = "Capacity: 100000000L";
+ this.mDescriptionArray[1] = "Capacity: 100,000,000L";
}
public GT_MetaTileEntity_CompressedFluidHatch(String aName, int aTier, String[] aDescription,
@@ -37,7 +37,7 @@ public class GT_MetaTileEntity_CompressedFluidHatch extends GT_MetaTileEntity_Ha
@Override
public int getCapacity() {
- return 100000000;
+ return 100_000_000;
}
@Override
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_HumongousInputHatch.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_HumongousInputHatch.java
new file mode 100644
index 0000000000..2951c12d05
--- /dev/null
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/tiered/GT_MetaTileEntity_HumongousInputHatch.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2018-2020 bartimaeusnek Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to deal in the Software without restriction,
+ * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following
+ * conditions: The above copyright notice and this permission notice shall be included in all copies or substantial
+ * portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
+ * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+package com.github.bartimaeusnek.bartworks.common.tileentities.tiered;
+
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input;
+import gregtech.common.gui.modularui.widget.FluidDisplaySlotWidget;
+
+public class GT_MetaTileEntity_HumongousInputHatch extends GT_MetaTileEntity_Hatch_Input {
+
+ public GT_MetaTileEntity_HumongousInputHatch(int aID, String aName, String aNameRegional) {
+ super(aID, aName, aNameRegional, 0);
+ this.mDescriptionArray[1] = "Capacity: 2,000,000,000L";
+ }
+
+ public GT_MetaTileEntity_HumongousInputHatch(String aName, int aTier, String[] aDescription,
+ ITexture[][][] aTextures) {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ @Override
+ public int getCapacity() {
+ return 2_000_000_000;
+ }
+
+ @Override
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
+ return new GT_MetaTileEntity_HumongousInputHatch(
+ this.mName,
+ this.mTier,
+ this.mDescriptionArray,
+ this.mTextures);
+ }
+
+ @Override
+ protected FluidDisplaySlotWidget createDrainableFluidSlot() {
+ return super.createDrainableFluidSlot();
+ }
+}