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

Method amount

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

Source from the content-addressed store, hash-verified

816 public static FluidStack make_(String aFluidName, long aAmount, String aReplacementFluidName, long aReplacementAmount) {FluidStack rFluid = make(aFluidName, aAmount); return rFluid == null ? make_(aReplacementFluidName, aReplacementAmount) : rFluid;}
817
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));}

Callers 15

mulMethod · 0.95
findRecipeMethod · 0.95
findRecipeMethod · 0.95
findRecipeMethod · 0.95
findRecipeMethod · 0.95
setFluidMethod · 0.95
onServerTickPostMethod · 0.95
onServerTickPostMethod · 0.95
unsorted1Method · 0.95
runMethod · 0.95
displayMethod · 0.45
getGibblValueMethod · 0.45

Calls 1

bindIntMethod · 0.95

Tested by

no test coverage detected