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

Method Encode

protocol/net/packet/play/setHeadRotation.go:19–24  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

17}
18
19func (s *SetHeadRotation) Encode(w encoding.Writer) error {
20 if err := w.VarInt(s.EntityId); err != nil {
21 return err
22 }
23 return w.Ubyte(s.HeadYaw)
24}
25
26func (s *SetHeadRotation) Decode(r encoding.Reader) error {
27 if _, err := r.VarInt(&s.EntityId); err != nil {

Callers

nothing calls this directly

Calls 2

VarIntMethod · 0.45
UbyteMethod · 0.45

Tested by

no test coverage detected