示例#1
0
 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);
   }
 }
示例#2
0
 public static IntArray readFromStream(DataInputStream inputStream) throws IOException {
   IntArray intArrayTag = new IntArray();
   intArrayTag.setName(TagReader.getNameOfTag(inputStream, intArrayTag.getType()));
   readPayload(inputStream, intArrayTag);
   return intArrayTag;
 }