(r encoding.Reader)
| 40 | } |
| 41 | |
| 42 | func (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 | } |