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

Method Encode

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

Source from the content-addressed store, hash-verified

17}
18
19func (u *UpdateTime) Encode(w encoding.Writer) error {
20 if err := w.Long(u.WorldAge); err != nil {
21 return err
22 }
23 return w.Long(u.TimeOfDay)
24}
25
26func (u *UpdateTime) Decode(r encoding.Reader) error {
27 if err := r.Long(&u.WorldAge); err != nil {

Callers

nothing calls this directly

Calls 1

LongMethod · 0.45

Tested by

no test coverage detected