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

Method getFluid

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

Source from the content-addressed store, hash-verified

357 public FluidStack get(long aMax) {return isEmpty() || aMax <= 0 ? null : new FluidStack(mFluid, UT.Code.bindInt(mAmount < aMax ? mAmount : aMax));}
358
359 @Override public FluidStack getFluid() {if (mFluid != null) mFluid.amount = UT.Code.bindInt(mAmount); return mFluid;}
360 @Override public int getFluidAmount() {return UT.Code.bindInt(mAmount);}
361 @Override public int getCapacity() {return UT.Code.bindInt(capacity());}
362 @Override public FluidTankInfo getInfo() {return new FluidTankInfo(isEmpty() ? null : mFluid.copy(), UT.Code.bindInt(capacity()));}

Callers 6

onTickPostMethod · 0.95
setCapacityMethod · 0.45
containsMethod · 0.45
capacity_Method · 0.45
nameMethod · 0.45
fluidMethod · 0.45

Calls 1

bindIntMethod · 0.80

Tested by

no test coverage detected