Package alexiil.mc.lib.attributes.fluid


package alexiil.mc.lib.attributes.fluid
The base package for fluid management.

As vanilla minecraft doesn't use fluids as much as items there are a few key differences between how this package works verses alexiil.mc.lib.attributes.item:

  • Instead of ItemStack we have FluidVolume (with an amount) and FluidKey (without an amount)
  • Slots are called "tanks"
  • Tanks/Slots do not have a pre-defined maximum amount (and neither do fluids themselves as that depends wholly on the container).
  • The units for fluids are fractional amounts based on 1+0/1 being equal to 1 bucket, stored in FluidAmount.