public String toString(ItemStack[] stack, int x) {
        this.itemIDH = stack[x].getTypeId();
        this.amountH = stack[x].getAmount();
        this.durabilityH = stack[x].getDurability();
        if (stack[x].getData() == null) {
            return this.itemIDH + "," + this.amountH + "," + "!" + "," + this.durabilityH;
        } else {
            this.dataH = stack[x].getData().getData();
        }
        return this.itemIDH + "," + this.amountH + "," + this.dataH + "," + this.durabilityH;
    }