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

Method Encode

protocol/net/packet/play/systemChatMessage.go:20–25  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

18}
19
20func (s *SystemChatMessage) Encode(w encoding.Writer) error {
21 if err := w.TextComponent(s.Content); err != nil {
22 return err
23 }
24 return w.Bool(s.Overlay)
25}
26
27func (s *SystemChatMessage) Decode(r encoding.Reader) error {
28 if err := r.TextComponent(&s.Content); err != nil {

Callers

nothing calls this directly

Calls 2

TextComponentMethod · 0.45
BoolMethod · 0.45

Tested by

no test coverage detected