Added setter for capacity of ILIquidTanks.
This commit is contained in:
parent
53b3ec5dc0
commit
b4c529382f
2 changed files with 7 additions and 0 deletions
common/net/minecraft/src/buildcraft/api/liquids
|
@ -9,6 +9,7 @@ public interface ILiquidTank {
|
||||||
*/
|
*/
|
||||||
LiquidStack getLiquid();
|
LiquidStack getLiquid();
|
||||||
void setLiquid(LiquidStack liquid);
|
void setLiquid(LiquidStack liquid);
|
||||||
|
void setCapacity(int capacity);
|
||||||
int getCapacity();
|
int getCapacity();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,10 +25,16 @@ public class LiquidTank implements ILiquidTank {
|
||||||
this.liquid = liquid;
|
this.liquid = liquid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setCapacity(int capacity) {
|
||||||
|
this.capacity = capacity;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getCapacity() {
|
public int getCapacity() {
|
||||||
return this.capacity;
|
return this.capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int fill(LiquidStack resource, boolean doFill) {
|
public int fill(LiquidStack resource, boolean doFill) {
|
||||||
if(resource == null || resource.itemID <= 0)
|
if(resource == null || resource.itemID <= 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue