MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / mul

Method mul

src/main/java/gregapi/data/FL.java:820–820  ·  view source on GitHub ↗
(FluidStack aFluid, long aMultiplier)

Source from the content-addressed store, hash-verified

818 public static FluidStack amount(FluidStack aFluid, long aAmount) {return aFluid == null ? null : new FluidStack(aFluid, Code.bindInt(aAmount));}
819
820 public static FluidStack mul(FluidStack aFluid, long aMultiplier) {return aFluid == null ? null : amount(aFluid, aFluid.amount * aMultiplier);}
821 public static FluidStack mul(FluidStack aFluid, long aMultiplier, long aDivider, boolean aRoundUp) {return aFluid == null ? null : amount(aFluid, Code.units(aFluid.amount, aDivider, aMultiplier, aRoundUp));}
822
823 public static long fill (@SuppressWarnings("rawtypes") DelegatorTileEntity aDelegator, FluidStack aFluid, boolean aDoFill) {return aDelegator != null && aDelegator.mTileEntity instanceof IFluidHandler && aFluid != null ? fill_(aDelegator, aFluid, aDoFill) : 0;}

Callers 15

getFluidOutputsMethod · 0.95
findRecipeMethod · 0.95
findRecipeMethod · 0.95
addRecipeForMaterialMethod · 0.95
addRecipeForPrefixMethod · 0.95
getFluidTankDrainableMethod · 0.95
onTick2Method · 0.95
getFluidTankDrainableMethod · 0.95
drainMethod · 0.95
updateTickMethod · 0.95
onModPostInit2Method · 0.95
onPostLoadMethod · 0.95

Calls 2

amountMethod · 0.95
unitsMethod · 0.95

Tested by

no test coverage detected