Reads the section after the title has already be been read.
()
| 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<>(); |
no test coverage detected