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

Method readString

src/minecraft/reader/nbt/NbtReader.java:201–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 }
200
201 public String readString() throws IOException {
202 int length = this.stream.readUnsignedShort();
203 String title = "";
204 for (int i = 0; i < length; i++) {
205 Byte b = this.stream.readByte();
206 char c = (char) (b & 0xFF);
207 title = title + c;
208 }
209 return title;
210 }
211
212 public String readTitle() throws IOException {
213 return this.readString();

Callers 2

readTitleMethod · 0.95
readPaletteMethod · 0.80

Calls 1

readByteMethod · 0.80

Tested by

no test coverage detected