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

Method doCompound

src/minecraft/reader/nbt/NbtReader.java:142–154  ·  view source on GitHub ↗

Inside compound, ready to read first tag @param onNamedTags @throws IOException

(Map<NamedTag, RunnableThrowing> onNamedTags)

Source from the content-addressed store, hash-verified

140 * @throws IOException
141 */
142 public void doCompound(Map<NamedTag, RunnableThrowing> onNamedTags) throws IOException {
143 int tag = this.stream.readUnsignedByte();
144 while (tag != NbtTag.END) {
145 String title = this.readTitle();
146 RunnableThrowing action = onNamedTags.get(new NamedTag(tag, title));
147 if (action == null) {
148 this.skipTagAfterTitle(tag);
149 } else {
150 action.run();
151 }
152 tag = this.readTag();
153 }
154 }
155
156 public void doCompound(NbtTasks onNamedTags) throws IOException {
157 int tag = this.stream.readUnsignedByte();

Callers 6

readChunkMethod · 0.80
readSectionMethod · 0.80
readPaletteMethod · 0.80
PlayerInLevelReaderMethod · 0.80
readMethod · 0.80
readPlayerDataMethod · 0.80

Calls 5

readTitleMethod · 0.95
skipTagAfterTitleMethod · 0.95
runMethod · 0.95
readTagMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected