public static void readPayload(DataInputStream inputStream, IntArray intArrayTag) throws IOException { int intEntryCount = inputStream.readInt(); java.util.List<de.dynamicfiles.projects.minecraft.nbt4j.tag.Int> ints = intArrayTag.getInts(); for (int index = 0; index < intEntryCount; index += 1) { de.dynamicfiles.projects.minecraft.nbt4j.tag.Int singleIntEntry = new de.dynamicfiles.projects.minecraft.nbt4j.tag.Int(); de.dynamicfiles.projects.minecraft.nbt4j.tag.Int.readPayload(inputStream, singleIntEntry); ints.add(singleIntEntry); } }
public static IntArray readFromStream(DataInputStream inputStream) throws IOException { IntArray intArrayTag = new IntArray(); intArrayTag.setName(TagReader.getNameOfTag(inputStream, intArrayTag.getType())); readPayload(inputStream, intArrayTag); return intArrayTag; }