public Packet getInventPacket(int head)
    {
        Packet packet = new Packet();
        packet.addHeader((byte)head, (byte)0x2E);
        packet.addPacketHead((byte)0x01, (byte)0x00);
        packet.addByte((byte)0x01);
        for (int i = 0; i<10; i++)
        {
            packet.addInt(this.inventitems[i], 4, false);
            if (this.inventitems[i] == 0)
                packet.addByte4((byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00);
            else
                packet.addByte4((byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF);

            packet.addByte((byte) 0x00);
        }
        packet.addInt(this.gigas, 4, false);
        return packet;
    }