GenuineSounds icon

Compounds

GenuineSounds | PRO | 02/09/15 11:05:01 PM UTC | 0 ⭐ | 521 👁️ | Never ⏰ | []
Java |

350 B

|

None

|

0 👍

/

0 👎

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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎