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

Method Decode

protocol/net/packet/play/playerCommand.go:42–51  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

40}
41
42func (p *PlayerCommand) Decode(r encoding.Reader) error {
43 if _, err := r.VarInt(&p.EntityId); err != nil {
44 return err
45 }
46 if _, err := r.VarInt(&p.ActionId); err != nil {
47 return err
48 }
49 _, err := r.VarInt(&p.JumpBoost)
50 return err
51}

Callers

nothing calls this directly

Calls 1

VarIntMethod · 0.45

Tested by

no test coverage detected