Added setter for capacity of ILIquidTanks.
This commit is contained in:
parent
53b3ec5dc0
commit
b4c529382f
2 changed files with 7 additions and 0 deletions
|
@ -9,6 +9,7 @@ public interface ILiquidTank {
|
|||
*/
|
||||
LiquidStack getLiquid();
|
||||
void setLiquid(LiquidStack liquid);
|
||||
void setCapacity(int capacity);
|
||||
int getCapacity();
|
||||
|
||||
/**
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue