Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (nbt.hasKey("compounds")) {
- int compoundNumber = 0;
- NBTTagCompound compoundTags = nbt.getCompoundTag("compounds");
- NBTTagCompound compoundTag;
- List<Compound> compoundList = new ArrayList<Compound>();
- while (!(compoundTag = compoundTags.getCompoundTag("compound" + compoundNumber)).hasNoTags())
- compoundList.add(Compound.from(compoundTag));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement