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

Method Decode

protocol/net/packet/play/blockUpdate.go:26–32  ·  view source on GitHub ↗
(r encoding.Reader)

Source from the content-addressed store, hash-verified

24}
25
26func (b *BlockUpdate) Decode(r encoding.Reader) error {
27 if err := r.Position(&b.X, &b.Y, &b.Z); err != nil {
28 return err
29 }
30 _, err := r.VarInt(&b.BlockId)
31 return err
32}

Callers

nothing calls this directly

Calls 2

PositionMethod · 0.45
VarIntMethod · 0.45

Tested by

no test coverage detected