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

Method Decode

protocol/net/packet/play/plugin.go:24–29  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

22}
23
24func (c *ClientboundPluginMessage) Decode(r encoding.Reader) error {
25 if err := r.Identifier(&c.Channel); err != nil {
26 return err
27 }
28 return r.ReadAll(&c.Data)
29}
30
31// serverbound
32const PacketIdServerboundPluginMessage = 0x12

Callers

nothing calls this directly

Calls 2

IdentifierMethod · 0.45
ReadAllMethod · 0.45

Tested by

no test coverage detected