(w encoding.Writer)
| 17 | } |
| 18 | |
| 19 | func (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 | |
| 26 | func (s *SetHeadRotation) Decode(r encoding.Reader) error { |
| 27 | if _, err := r.VarInt(&s.EntityId); err != nil { |