From c5a414df37b9bfc84d36b251e978ca36f47cf590 Mon Sep 17 00:00:00 2001 From: aidancbrady Date: Wed, 29 Jun 2016 19:58:13 -0400 Subject: [PATCH] Remove deprecated gas API methods --- .../java/mekanism/api/gas/IGasHandler.java | 6 ----- .../common/multipart/PartPressurizedTube.java | 12 ---------- .../TileEntityAdvancedElectricMachine.java | 12 ---------- .../tile/TileEntityAmbientAccumulator.java | 12 ---------- .../tile/TileEntityChemicalCrystallizer.java | 12 ---------- .../TileEntityChemicalDissolutionChamber.java | 12 ---------- .../tile/TileEntityChemicalInfuser.java | 12 ---------- .../common/tile/TileEntityChemicalWasher.java | 12 ---------- .../tile/TileEntityElectrolyticSeparator.java | 12 ---------- .../common/tile/TileEntityFactory.java | 12 ---------- .../common/tile/TileEntityGasTank.java | 12 ---------- .../mekanism/common/tile/TileEntityPRC.java | 12 ---------- .../tile/TileEntityQuantumEntangloporter.java | 12 ---------- .../tile/TileEntityRotaryCondensentrator.java | 12 ---------- .../tile/TileEntitySolarNeutronActivator.java | 12 ---------- .../common/tile/TileEntityGasGenerator.java | 12 ---------- .../tile/reactor/TileEntityReactorPort.java | 22 +------------------ 17 files changed, 1 insertion(+), 207 deletions(-) diff --git a/src/main/java/mekanism/api/gas/IGasHandler.java b/src/main/java/mekanism/api/gas/IGasHandler.java index e06952317..3d99da62e 100644 --- a/src/main/java/mekanism/api/gas/IGasHandler.java +++ b/src/main/java/mekanism/api/gas/IGasHandler.java @@ -16,9 +16,6 @@ public interface IGasHandler */ public int receiveGas(ForgeDirection side, GasStack stack, boolean doTransfer); - @Deprecated - public int receiveGas(ForgeDirection side, GasStack stack); - /** * Draws a certain amount of gas from this block. * @param amount - amount to draw @@ -26,9 +23,6 @@ public interface IGasHandler */ public GasStack drawGas(ForgeDirection side, int amount, boolean doTransfer); - @Deprecated - public GasStack drawGas(ForgeDirection side, int amount); - /** * Whether or not this block can accept gas from a certain side. * @param side - side to check diff --git a/src/main/java/mekanism/common/multipart/PartPressurizedTube.java b/src/main/java/mekanism/common/multipart/PartPressurizedTube.java index 8a108cc98..f3d1ad25e 100644 --- a/src/main/java/mekanism/common/multipart/PartPressurizedTube.java +++ b/src/main/java/mekanism/common/multipart/PartPressurizedTube.java @@ -272,24 +272,12 @@ public class PartPressurizedTube extends PartTransmitter 0) - { - return new GasStack(GasRegistry.getGas("steam"), getReactor().getSteamTank().drain(amount, doTransfer).amount); - } - } - return null; } - @Override - public GasStack drawGas(ForgeDirection side, int amount) - { - return drawGas(side, amount, true); - } - @Override public boolean canReceiveGas(ForgeDirection side, Gas type) { @@ -164,7 +144,7 @@ public class TileEntityReactorPort extends TileEntityReactorBlock implements IFl @Override public boolean canDrawGas(ForgeDirection side, Gas type) { - return (type == GasRegistry.getGas("steam")); + return false; } @Override