diff options
| author | ghostflyby <ghostflyby@outlook.com> | 2023-11-08 22:17:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-08 22:17:00 +0800 |
| commit | 3444f528c31ed2dd0f6b18a529ad4a2c14897188 (patch) | |
| tree | aec387815aa3d7a54c1860eb287229a4926c1865 /src/main/java/gregtech/common/tileentities/machines/basic | |
| parent | 86c14f89da55b39ef7a9c850e9a1f303c5274cf4 (diff) | |
| download | GT5-Unofficial-3444f528c31ed2dd0f6b18a529ad4a2c14897188.tar.gz GT5-Unofficial-3444f528c31ed2dd0f6b18a529ad4a2c14897188.tar.bz2 GT5-Unofficial-3444f528c31ed2dd0f6b18a529ad4a2c14897188.zip | |
Migrate to non-Object version Utility methods (#2359)
A few calls restricted by other methods and interfaces are left untouched.
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines/basic')
2 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java index 4c38b01279..34bb0b782c 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java @@ -211,7 +211,7 @@ public class GT_MetaTileEntity_Boxinator extends GT_MetaTileEntity_BasicMachine true, gregtech.api.enums.GT_Values.V[mTier], null, - GT_Utility.copyAmount(64L, aStack), + GT_Utility.copyAmount(64, aStack), tInput1) != null) { return true; } diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java index c764c72941..3bbd9f67ab 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java @@ -182,7 +182,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { this.mEUt = 1; } aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, aStack); + this.mOutputItems[0] = GT_Utility.copyAmount(1, aStack); assert this.mOutputItems[0] != null; this.mOutputItems[0].setTagCompound(tNBT); return 2; @@ -190,7 +190,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { if (ItemList.Tool_DataOrb.isStackEqual(getSpecialSlot(), false, true)) { if (ItemList.Tool_DataOrb.isStackEqual(aStack, false, true)) { aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); + this.mOutputItems[0] = GT_Utility.copyAmount(1, getSpecialSlot()); calculateOverclockedNess(30, 512); // In case recipe is too OP for that machine if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) @@ -219,7 +219,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { if (ItemList.Tool_DataStick.isStackEqual(getSpecialSlot(), false, true)) { if (ItemList.Tool_DataStick.isStackEqual(aStack, false, true)) { aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); + this.mOutputItems[0] = GT_Utility.copyAmount(1, getSpecialSlot()); calculateOverclockedNess(30, 128); // In case recipe is too OP for that machine if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) @@ -230,7 +230,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { getSpecialSlot().stackSize -= 1; aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); + this.mOutputItems[0] = GT_Utility.copyAmount(1, getSpecialSlot()); assert this.mOutputItems[0] != null; this.mOutputItems[0].setTagCompound(aStack.getTagCompound()); calculateOverclockedNess(30, 128); @@ -243,7 +243,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { getSpecialSlot().stackSize -= 1; aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); + this.mOutputItems[0] = GT_Utility.copyAmount(1, getSpecialSlot()); assert this.mOutputItems[0] != null; this.mOutputItems[0].setTagCompound( GT_Utility @@ -327,7 +327,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { getSpecialSlot().stackSize -= 1; aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); + this.mOutputItems[0] = GT_Utility.copyAmount(1, getSpecialSlot()); assert this.mOutputItems[0] != null; this.mOutputItems[0].setTagCompound( GT_Utility.getNBTContainingShort(new NBTTagCompound(), "rocket_tier", Short.parseShort(sTier))); @@ -346,7 +346,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { GT_Utility.ItemNBT.convertProspectionData(aStack); aStack.stackSize -= 1; - this.mOutputItems[0] = GT_Utility.copyAmount(1L, aStack); + this.mOutputItems[0] = GT_Utility.copyAmount(1, aStack); calculateOverclockedNess(30, 1000); // In case recipe is too OP for that machine if (mMaxProgresstime == Integer.MAX_VALUE - 1 && mEUt == Integer.MAX_VALUE - 1) @@ -368,7 +368,7 @@ public class GT_MetaTileEntity_Scanner extends GT_MetaTileEntity_BasicMachine { return FOUND_RECIPE_BUT_DID_NOT_MEET_REQUIREMENTS; } - this.mOutputItems[0] = GT_Utility.copyAmount(1L, getSpecialSlot()); + this.mOutputItems[0] = GT_Utility.copyAmount(1, getSpecialSlot()); // Use Assline Utils if (GT_AssemblyLineUtils.setAssemblyLineRecipeOnDataStick(this.mOutputItems[0], tRecipe)) { |
