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));
}
Comments
0 B
|👍
/👎