Inside compound, ready to read first tag @param onNamedTags @throws IOException
(Map<NamedTag, RunnableThrowing> onNamedTags)
| 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(); |
no test coverage detected