public static PixelmonMovesetDataPacket createPacket(NBTTagCompound nbt, int i) {
   if (nbt.getInteger("PixelmonNumberMoves") <= i) return null;
   PixelmonMovesetDataPacket p = new PixelmonMovesetDataPacket();
   p.attackName = nbt.getString("PixelmonMoveName" + i);
   p.type = EnumType.parseType(nbt.getInteger("PixelmonMoveType" + i));
   p.pp = nbt.getInteger("PixelmonMovePP" + i);
   p.ppBase = nbt.getInteger("PixelmonMovePPBase" + i);
   return p;
 }
 public static PixelmonMovesetDataPacket createPacket(Moveset moveset, int i) {
   if (moveset.size() <= i) return null;
   PixelmonMovesetDataPacket p = new PixelmonMovesetDataPacket();
   p.attackName = moveset.get(i).attackName;
   p.pp = moveset.get(i).pp;
   p.ppBase = moveset.get(i).ppBase;
   p.type = moveset.get(i).attackType;
   return p;
 }