
package com.laytonsmith.abstraction.bukkit;

import com.laytonsmith.abstraction.MCItem;
import com.laytonsmith.abstraction.MCItemStack;
import org.bukkit.entity.Item;
import org.bukkit.inventory.ItemStack;

/**
 *
 * @author Layton
 */
public class BukkitMCItem extends BukkitMCEntity implements MCItem{
	
	Item i;
	
	public BukkitMCItem(Item i){
		super(i);
		this.i = i;
	}
	
	public MCItemStack getItemStack(){
		return (MCItemStack) i.getItemStack();
	}
	
	public int getPickupDelay(){
		return i.getPickupDelay();
	}
	
	public void setItemStack(MCItemStack stack){
		i.setItemStack((ItemStack) stack);
	}
	
	public void setPickupDelay(int delay){
		i.setPickupDelay(delay);
	}
}

@@ -417,17 +417,26 @@
 %09return 
-(
+new Bukkit
 MCItemSt
@@ -438,18 +438,17 @@
 temStack
-) 
+(
 i.getIte
@@ -455,16 +455,17 @@
 mStack()
+)
 ;%0A%09%7D%0A%09%0A%09
@@ -591,16 +591,25 @@
 mStack((
+(BukkitMC
 ItemStac
@@ -617,16 +617,31 @@
 ) stack)
+.asItemStack())
 ;%0A%09%7D%0A%09%0A%09

Correct abstraction mistake