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

Method Encode

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

Source from the content-addressed store, hash-verified

17}
18
19func (b *BlockUpdate) Encode(w encoding.Writer) error {
20 if err := w.Position(b.X, b.Y, b.Z); err != nil {
21 return err
22 }
23 return w.VarInt(b.BlockId)
24}
25
26func (b *BlockUpdate) Decode(r encoding.Reader) error {
27 if err := r.Position(&b.X, &b.Y, &b.Z); err != nil {

Callers

nothing calls this directly

Calls 2

PositionMethod · 0.45
VarIntMethod · 0.45

Tested by

no test coverage detected