Skip to main content

get_own_height

Function get_own_height 

Source
pub fn get_own_height(fluid_state: FluidState) -> f32
Expand description

Returns the fluid’s own height as a fraction of a full block. amount / 9.0 — source blocks have amount = 8, giving 0.888... Flowing blocks range from amount = 1 (thin) to 7 (tall).