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

Method readPalette

src/minecraft/reader/nbt/McaReader.java:77–84  ·  view source on GitHub ↗
(Mapping mapping)

Source from the content-addressed store, hash-verified

75 }
76
77 private void readPalette(Mapping mapping) throws IOException {
78 Queue<String> palette = new LinkedList<>();
79 NbtTasks paletteTasks = NbtTasks.I.create()
80 .put(PALETTE_NAME, () -> palette.add(this.readString()))
81 .put(PALETTE_PROPERTIES, this::skipCompound);
82 this.doListOfCompounds(() -> this.doCompound(paletteTasks));
83 mapping.set(this.getMapping(palette));
84 }
85
86 private int[] getMapping(Queue<String> palette) {
87 int[] mapping = new int[palette.size()];

Callers 1

readSectionMethod · 0.95

Calls 8

getMappingMethod · 0.95
readStringMethod · 0.80
doListOfCompoundsMethod · 0.80
doCompoundMethod · 0.80
setMethod · 0.80
putMethod · 0.45
createMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected