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

Method Encode

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

Source from the content-addressed store, hash-verified

17}
18
19func (e *EntityEvent) Encode(w encoding.Writer) error {
20 if err := w.Int(e.EntityId); err != nil {
21 return err
22 }
23 return w.Byte(e.EntityStatus)
24}
25
26func (e *EntityEvent) Decode(r encoding.Reader) error {
27 if err := r.Int(&e.EntityId); err != nil {

Callers

nothing calls this directly

Calls 2

IntMethod · 0.45
ByteMethod · 0.45

Tested by

no test coverage detected