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

Method Encode

protocol/net/packet/play/plugin.go:17–22  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

15}
16
17func (c *ClientboundPluginMessage) Encode(w encoding.Writer) error {
18 if err := w.Identifier(c.Channel); err != nil {
19 return err
20 }
21 return w.FixedByteArray(c.Data)
22}
23
24func (c *ClientboundPluginMessage) Decode(r encoding.Reader) error {
25 if err := r.Identifier(&c.Channel); err != nil {

Callers

nothing calls this directly

Calls 2

IdentifierMethod · 0.45
FixedByteArrayMethod · 0.45

Tested by

no test coverage detected