pub fn to_or_from_legacy_fluid_level(level: u8) -> u8
Expand description
Sometimes Minecraft represents fluids with 0 being empty and 8 being full, and sometimes it’s the opposite. You can use this function to convert in between those two representations.
You usually don’t need to call this yourself, see FluidState
.