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

Method Encode

protocol/net/packet/play/entityAnimation.go:28–33  ·  view source on GitHub ↗
(w encoding.Writer)

Source from the content-addressed store, hash-verified

26}
27
28func (e *EntityAnimation) Encode(w encoding.Writer) error {
29 if err := w.VarInt(e.EntityId); err != nil {
30 return err
31 }
32 return w.Ubyte(e.Animation)
33}
34
35func (e *EntityAnimation) Decode(r encoding.Reader) error {
36 if _, err := r.VarInt(&e.EntityId); err != nil {

Callers

nothing calls this directly

Calls 2

VarIntMethod · 0.45
UbyteMethod · 0.45

Tested by

no test coverage detected