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 void readData(DataInputStream data) throws IOException {
   attackName = Packet.readString(data, 64);
   type = EnumType.parseType(data.readShort());
   pp = data.readShort();
   ppBase = data.readShort();
 }
 public void writeData(DataOutputStream data) throws IOException {
   Packet.writeString(attackName, data);
   data.writeShort(type.getIndex());
   data.writeShort(pp);
   data.writeShort(ppBase);
 }