Skip to main content

command_nbt_component

Function command_nbt_component 

Source
pub fn command_nbt_component(tag: &NbtTag, plain: bool) -> TextComponent
Expand description

Renders one NBT tag using vanilla’s command-component syntax highlighting.

Float and double digits intentionally use Rust formatting. All surrounding SNBT syntax and styling follows TextComponentTagVisitor from vanilla 26.2.