Skip to main content

text_expr

Function text_expr 

Source
pub fn text_expr(value: &str) -> Result<String, String>
Expand description

The Rust expression for a text attribute, its @ forms as everywhere in Yog Data (yog_data::typed): "@Strings.title" is a text of resources/Strings.yres (see set_resource_refs), "@lang:gui.done" any translation key, "@item:minecraft:stick" (@block:, @entity:) that content’s name — each looked up when the tree is built (::yog_api::tr, so it follows the game’s language); "@@..." is a literal text starting with @; anything else is the literal text.