Implement native fluid-state JSON decoding and encoding

This commit is contained in:
Ludovic Marie
2026-10-06 12:32:23 +02:00
parent 7984238b3e
commit 27cbdfdbde
8 changed files with 173 additions and 31 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ impl<'a> BlockStateJsonCodec<'a> {
}
}
fn java_integer(text: &str) -> Option<i32> {
pub(crate) fn java_integer(text: &str) -> Option<i32> {
let (negative, text) = if let Some(text) = text.strip_prefix('-') {
(true, text)
} else {