Class FluidAmount

java.lang.Object
alexiil.mc.lib.attributes.fluid.amount.FluidAmount
All Implemented Interfaces:
Comparable<FluidAmount>

public final class FluidAmount extends Object
A simple mixed fraction. The value represented by this can be calculated with this: "whole + (numerator / denominator)". Negative values are indicated with both whole and numerator being negative - it is never permissible for only one of them to be less than 0 and the other to be greater than 0.

Note: This class is intended to become a value-based class, so it will (eventually) obey the rules set out in https://openjdk.java.net/jeps/390.