MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / canFillAll

Method canFillAll

src/main/java/gregapi/fluid/FluidTankGT.java:203–203  ·  view source on GitHub ↗
(FluidStack aFluid)

Source from the content-addressed store, hash-verified

201 }
202
203 public boolean canFillAll(FluidStack aFluid) {return aFluid == null || aFluid.amount <= 0 || (isEmpty() ? mVoidExcess || aFluid.amount <= capacity(aFluid) : contains(aFluid) && (mVoidExcess || mAmount + aFluid.amount <= capacity(aFluid)));}
204 public boolean canFillAll(long aAmount) {return aAmount <= 0 || mVoidExcess || mAmount + aAmount <= capacity();}
205
206 public boolean fillAll(FluidStack aFluid) {

Callers 3

onTick2Method · 0.80
onTick2Method · 0.80
onTick2Method · 0.80

Calls 3

isEmptyMethod · 0.95
capacityMethod · 0.95
containsMethod · 0.95

Tested by

no test coverage detected