So i have a public itemstack, and i made a new itemstack method that returns the auctionitem (but with enchant ect) . So i need to get auctionItems datavalue and include it in this itemstack below. MyCode: Code (Text): ItemStack item = new ItemStack(this.auctionItem.getType(), this.itemAmmount, (short) auctionItems data goes here..);
Figured it out. Wasnt thinking Code (Text): public ItemStack Item() { ItemStack item = new ItemStack(this.auctionItem.getType(), this.itemAmmount); item.setItemMeta(auctionItem.getItemMeta()); item.addEnchantments(auctionItem.getEnchantments()); item.setDurability(auctionItem.getDurability()); item.setData(auctionItem.getData()); return item; }