Skip to main content

to_canonical_snbt

Function to_canonical_snbt 

Source
pub fn to_canonical_snbt(tag: &NbtTag) -> Option<String>
Expand description

Renders an NBT value with Vanilla Tag::toString semantics.

Compound keys use Java string ordering, and floating-point values use the decimal selected by Float.toString / Double.toString.