Пример #1
0
 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);
     }
   }
 }
Пример #2
0
 public void healAllPokemon() {
   for (int i = 0; i < partyPokemon.length; i++) {
     NBTTagCompound nbt = partyPokemon[i];
     if (nbt != null) {
       heal(nbt);
     }
   }
 }