From b4c529382fd7bc5ef2214bb8b8d04a2a4e5dd7dc Mon Sep 17 00:00:00 2001 From: SirSengir Date: Sat, 21 Jul 2012 12:57:16 +0200 Subject: [PATCH] Added setter for capacity of ILIquidTanks. --- .../minecraft/src/buildcraft/api/liquids/ILiquidTank.java | 1 + .../minecraft/src/buildcraft/api/liquids/LiquidTank.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/common/net/minecraft/src/buildcraft/api/liquids/ILiquidTank.java b/common/net/minecraft/src/buildcraft/api/liquids/ILiquidTank.java index dbb1531e..aa1874fc 100644 --- a/common/net/minecraft/src/buildcraft/api/liquids/ILiquidTank.java +++ b/common/net/minecraft/src/buildcraft/api/liquids/ILiquidTank.java @@ -9,6 +9,7 @@ public interface ILiquidTank { */ LiquidStack getLiquid(); void setLiquid(LiquidStack liquid); + void setCapacity(int capacity); int getCapacity(); /** diff --git a/common/net/minecraft/src/buildcraft/api/liquids/LiquidTank.java b/common/net/minecraft/src/buildcraft/api/liquids/LiquidTank.java index ccfc0742..b713e3ea 100644 --- a/common/net/minecraft/src/buildcraft/api/liquids/LiquidTank.java +++ b/common/net/minecraft/src/buildcraft/api/liquids/LiquidTank.java @@ -25,10 +25,16 @@ public class LiquidTank implements ILiquidTank { this.liquid = liquid; } + @Override + public void setCapacity(int capacity) { + this.capacity = capacity; + } + @Override public int getCapacity() { return this.capacity; } + @Override public int fill(LiquidStack resource, boolean doFill) { if(resource == null || resource.itemID <= 0)