@@ -0,0 +1,891 @@
+package org.cyclops.cyclopscore.helper;%0A%0Aimport net.minecraftforge.fluids.FluidStack;%0A%0Aimport javax.annotation.Nullable;%0A%0A/**%0A * Contains helper methods for various fluid specific things.%0A * @author rubensworks%0A */%0Apublic final class FluidHelpers %7B%0A%0A    /**%0A     * Get the fluid amount of the given stack in a safe manner.%0A     * @param fluidStack The fluid stack%0A     * @return The fluid amount.%0A     */%0A    public static int getAmount(@Nullable FluidStack fluidStack) %7B%0A        return fluidStack != null ? fluidStack.amount : 0;%0A    %7D%0A%0A    /**%0A     * Copy the given fluid stack%0A     * @param fluidStack The fluid stack to copy.%0A     * @return A copy of the fluid stack.%0A     */%0A    public static FluidStack copy(@Nullable FluidStack fluidStack) %7B%0A        if(fluidStack == null) return null;%0A        return new FluidStack(fluidStack.getFluid(), fluidStack.amount, fluidStack.tag);%0A    %7D%0A%0A%7D%0A

Add FluidHelpers