Advertisement
GenuineSounds

Compounds

Feb 9th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. if (nbt.hasKey("compounds")) {
  2.     int compoundNumber = 0;
  3.     NBTTagCompound compoundTags = nbt.getCompoundTag("compounds");
  4.     NBTTagCompound compoundTag;
  5.     List<Compound> compoundList = new ArrayList<Compound>();
  6.     while (!(compoundTag = compoundTags.getCompoundTag("compound" + compoundNumber)).hasNoTags())
  7.         compoundList.add(Compound.from(compoundTag));
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement