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

Method Position

protocol/net/io/encoding/writer.go:139–141  ·  view source on GitHub ↗
(x, y, z int32)

Source from the content-addressed store, hash-verified

137}
138
139func (w Writer) Position(x, y, z int32) error {
140 return w.Long(((int64(x) & 0x3FFFFFF) << 38) | ((int64(z) & 0x3FFFFFF) << 12) | (int64(y) & 0xFFF))
141}
142
143func (w Writer) UUID(u uuid.UUID) error {
144 d := [16]byte(u)

Callers

nothing calls this directly

Calls 1

LongMethod · 0.95

Tested by

no test coverage detected