public void heal(int index) { for (int i = 0; i < partyPokemon.length; i++) { NBTTagCompound nbt = partyPokemon[i]; if (nbt != null) { if (nbt.getInteger("pixelmonID") == index) heal(nbt); } } }
public void healAllPokemon() { for (int i = 0; i < partyPokemon.length; i++) { NBTTagCompound nbt = partyPokemon[i]; if (nbt != null) { heal(nbt); } } }