MCPcopy Create free account
hub / github.com/Garten/sourcecraft / readSection

Method readSection

src/minecraft/reader/nbt/McaReader.java:65–75  ·  view source on GitHub ↗

Reads the section after the title has already be been read.

()

Source from the content-addressed store, hash-verified

63 * Reads the section after the title has already be been read.
64 */
65 private McaSection readSection() throws IOException {
66 McaSection section = new McaSection(this.convertee);
67 Mapping mapping = new Mapping();
68 NbtTasks sectionTasks = NbtTasks.I.create()
69 .put(Y, () -> section.setHeight(this.readByte()))
70 .put(BLOCK_STATES, () -> section.readBlocksRaw(this))
71 .put(PALETTE, () -> this.readPalette(mapping));
72 this.doCompound(sectionTasks);
73 section.translateRawInfo(mapping.get());
74 return section;
75 }
76
77 private void readPalette(Mapping mapping) throws IOException {
78 Queue<String> palette = new LinkedList<>();

Callers 1

readSectionsMethod · 0.95

Calls 9

setHeightMethod · 0.95
readBlocksRawMethod · 0.95
readPaletteMethod · 0.95
translateRawInfoMethod · 0.95
getMethod · 0.95
readByteMethod · 0.80
doCompoundMethod · 0.80
putMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected