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

Function init

server/world/chunk/encode.go:18–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16var fullLightBuffer = make([]byte, 2048)
17
18func init() {
19 for i := range fullLightBuffer {
20 fullLightBuffer[i] = 0xFF
21 }
22}
23
24func (chunk *Chunk) Encode(biomeIndexes []string) *play.ChunkDataUpdateLight {
25 buf := buffers.Buffers.Get().(*bytes.Buffer)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected