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

Method JSONTextComponent

protocol/net/io/encoding/writer.go:186–190  ·  view source on GitHub ↗
(comp text.TextComponent)

Source from the content-addressed store, hash-verified

184}
185
186func (w Writer) JSONTextComponent(comp text.TextComponent) error {
187 d, _ := json.Marshal(comp)
188
189 return w.ByteArray(d)
190}
191
192func (w Writer) TextComponent(comp text.TextComponent) error {
193 return w.NBT(comp)

Callers

nothing calls this directly

Calls 1

ByteArrayMethod · 0.95

Tested by

no test coverage detected