Package net.minecraft.nbt

Examples of net.minecraft.nbt.NBTTagList.removeTag()


  public void handleListPacket(NBTTagCompound tag) {
    excludedCC.clear();
    NBTTagList list = tag.getTagList("list", 3);
    while(list.tagCount() > 0) {
      NBTBase base = list.removeTag(0);
      excludedCC.add(((NBTTagInt)base).func_150287_d());
    }
  }

  @Override
View Full Code Here


        if (list.func_150303_d() == Constants.NBT.TAG_COMPOUND) {
          for (int i = list.tagCount() - 1; i >= 0; --i) {
            try {
              scanAndTranslateStacksToWorld(list.getCompoundTagAt(i));
            } catch (MappingNotFoundException e) {
              list.removeTag(i);
            }
          }
        }
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.