fromStack

Get the fluid represented by the given item stack, or null if the stack is null, empty or does not represent a fluid. See item for how to get an item stack that represents this fluid.