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