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

Method Init

server/world/chunk/section/section.go:39–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func (s *Section) Init() {
40 s.blockBitsPerEntry = blockBitsPerEntry(len(s.BlockStates.Palette))
41 s.biomeBitsPerEntry = biomeBitsPerEntry(len(s.Biomes.Palette))
42}
43
44func (s *Section) BPE() (block, biome int) {
45 return s.blockBitsPerEntry, s.biomeBitsPerEntry

Callers 1

GetChunkBufMethod · 0.80

Calls 2

blockBitsPerEntryFunction · 0.85
biomeBitsPerEntryFunction · 0.85

Tested by

no test coverage detected