diff options
| author | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-12 23:01:54 +0300 |
| commit | ee2575794e91b9457a74a95daf1dcc707058cd58 (patch) | |
| tree | df725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-block/src/fluid_state.rs | |
| parent | 1a1402954b07cd77615d0afc026c73b008787f51 (diff) | |
| download | azalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz | |
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-block/src/fluid_state.rs')
| -rw-r--r-- | azalea-block/src/fluid_state.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea-block/src/fluid_state.rs b/azalea-block/src/fluid_state.rs index cfddcc7f..80d0953b 100644 --- a/azalea-block/src/fluid_state.rs +++ b/azalea-block/src/fluid_state.rs @@ -112,9 +112,10 @@ impl From<BlockState> for FluidState { } } -/// 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. +/// Convert between Minecraft's two fluid level representations. +/// +/// This exists because sometimes Minecraft represents fluids with 0 being empty +/// and 8 being full, and sometimes it's the opposite. /// /// You usually don't need to call this yourself, see [`FluidState`]. pub fn to_or_from_legacy_fluid_level(level: u8) -> u8 { |
