예제 #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);
     }
   }
 }