MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / Unmarshalf

Function Unmarshalf

protocol/text/text.go:81–83  ·  view source on GitHub ↗

Unmarshalf is the same as Unmarshal but with formatting

(codeChar rune, format string, v ...any)

Source from the content-addressed store, hash-verified

79
80// Unmarshalf is the same as Unmarshal but with formatting
81func Unmarshalf(codeChar rune, format string, v ...any) TextComponent {
82 return Unmarshal(fmt.Sprintf(format, v...), codeChar)
83}
84
85// Unmarshal parses the text and color codes into a text component. The codeChar argument is what's used for color codes (i.e &)
86func Unmarshal(text string, codeChar rune) TextComponent {

Callers 2

debug.goFile · 0.92
CallMethod · 0.92

Calls 1

UnmarshalFunction · 0.70

Tested by

no test coverage detected