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

Method Decode

protocol/net/packet/login/plugin.go:30–38  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

28}
29
30func (l *LoginPluginRequest) Decode(r encoding.Reader) error {
31 if _, err := r.VarInt(&l.MessageID); err != nil {
32 return err
33 }
34 if err := r.Identifier(&l.Channel); err != nil {
35 return err
36 }
37 return r.ReadAll(&l.Data)
38}
39
40// serverbound
41const PacketIdLoginPluginResponse = 0x02

Callers

nothing calls this directly

Calls 3

VarIntMethod · 0.45
IdentifierMethod · 0.45
ReadAllMethod · 0.45

Tested by

no test coverage detected