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

Method Position

protocol/net/io/encoding/reader.go:170–179  ·  view source on GitHub ↗
(x, y, z *int32)

Source from the content-addressed store, hash-verified

168}
169
170func (r Reader) Position(x, y, z *int32) error {
171 var l int64
172 err := r.Long(&l)
173
174 *x = int32(l >> 38)
175 *y = int32(l << 52 >> 52)
176 *z = int32(l << 26 >> 38)
177
178 return err
179}
180
181func (r Reader) UUID(u *uuid.UUID) error {
182 d, err := r.readBytes(16)

Callers 12

EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45
EncodeMethod · 0.45
EncodeMethod · 0.45
DecodeMethod · 0.45

Calls 1

LongMethod · 0.95

Tested by

no test coverage detected