Added setter for capacity of ILIquidTanks.

This commit is contained in:
SirSengir 2012-07-21 12:57:16 +02:00
parent 53b3ec5dc0
commit b4c529382f
2 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,7 @@ public interface ILiquidTank {
*/
LiquidStack getLiquid();
void setLiquid(LiquidStack liquid);
void setCapacity(int capacity);
int getCapacity();
/**

View file

@ -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)