public DrawableItemStack(int id, int amount) { super(0, 0); this.amount = amount; this.itemId = id; this.setImage(ImageCache.getIcon(this.itemId)); }
public DrawableItemStack(ItemStack is, int xPos, int yPos) { super(xPos, yPos); this.amount = is.getAmount(); this.itemId = is.getItemId(); this.setImage(ImageCache.getIcon(this.itemId)); }