Exemplo n.º 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);
     }
   }
 }
Exemplo n.º 2
0
 public void healAllPokemon() {
   for (int i = 0; i < partyPokemon.length; i++) {
     NBTTagCompound nbt = partyPokemon[i];
     if (nbt != null) {
       heal(nbt);
     }
   }
 }