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

Method Encode

server/world/chunk/encode.go:24–29  ·  view source on GitHub ↗
(biomeIndexes []string)

Source from the content-addressed store, hash-verified

22}
23
24func (chunk *Chunk) Encode(biomeIndexes []string) *play.ChunkDataUpdateLight {
25 buf := buffers.Buffers.Get().(*bytes.Buffer)
26 buf.Reset()
27 defer buffers.Buffers.Put(buf)
28 return chunk.EncodeBuf(biomeIndexes, buf)
29}
30
31func (chunk *Chunk) EncodeBuf(biomeIndexes []string, buf *bytes.Buffer) *play.ChunkDataUpdateLight {
32 bstateId := int32(slices.Index(biomeIndexes, "minecraft:plains"))

Callers

nothing calls this directly

Calls 2

EncodeBufMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected