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

Method Decode

protocol/net/packet/play/setPlayerPosition.go:32–43  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

30}
31
32func (s *SetPlayerPosition) Decode(r encoding.Reader) error {
33 if err := r.Double(&s.X); err != nil {
34 return err
35 }
36 if err := r.Double(&s.Y); err != nil {
37 return err
38 }
39 if err := r.Double(&s.Z); err != nil {
40 return err
41 }
42 return r.Bool(&s.OnGround)
43}

Callers

nothing calls this directly

Calls 2

DoubleMethod · 0.45
BoolMethod · 0.45

Tested by

no test coverage detected