Draws an itemStack to the GUI at the specified coordinates.

@param itemStack the item stack
@param x the x
@param y the y
511550
public void drawItemStack(ItemStack itemStack, int x, int y)
	{
		drawItemStack(itemStack, x, y, null, null, true);
	}
745898
public void paintFrame (Graphics2D g, int index, int x, int y)
    {
        _source.getTile(index).paint(g, x, y);
    }
502318
protected void drawBase (Graphics2D gfx, int x, int y)
    {
        gfx.fillRoundRect(
            x, y, _size.width - 1, _size.height - 1, _dia, _dia);
    }
121226
protected void drawBorder (Graphics2D gfx, int x, int y)
    {
        // draw the black outer border
        gfx.setColor(Color.black);
        gfx.drawRoundRect(x, y, _size.width - 1, _size.height - 1, _dia, _dia);
    }
26668
public void setItems(java.util.Collection<Model> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<Model>(items);
    }
1144163
public void setItems(java.util.Collection<Resource> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<Resource>(items);
    }
106960
protected void addItemView(View itemView, int childIndex) {
        final ViewGroup currentParent = (ViewGroup) itemView.getParent();
        if (currentParent != null) {
            currentParent.removeView(itemView);
        }
        ((ViewGroup) mMenuView).addView(itemView, childIndex);
    }
1219178
private IItemRenderer getItemRendererOverride(ItemStack itemStack)
	{
		for (ItemRendererOverride overrides : itemRendererOverrides)
		{
			IItemRenderer renderer = overrides.get(itemStack);
			if (renderer != null)
				return renderer;
		}

		return null;
	}
871951
public void setItems(java.util.Collection<Item> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<Item>(items);
    }
1242641
protected void xAxis(Graphics g) {
        g.setColor(Color.BLACK);

        // x-axis line
        g.drawLine(X_OFFSET_LEFT, calcY(0), width + X_OFFSET_LEFT, calcY(0));

        drawXLabels(g);
    }
1277873
@SafeVarargs
    public static <Item> void flatten(final Collection<? super Item> target, final Item... items) {
        flattenAsStream(items).forEachOrdered(target::add);
    }
529370
protected void drawLabel (Graphics2D gfx, int x, int y)
    {
        _label.render(gfx, x + _lxoff, y + _lyoff);
    }
1010567
public void setPickedItemStack(ItemStack itemStack)
	{
		pickedItemStack = checkNotNull(itemStack);
		owner.inventory.setItemStack(itemStack);
	}
1360592
public void placeItem(ItemStack stack, BlockPos pos, World world, boolean centreItem)
    {
        EntityItem entityitem = createItem(stack, (double)pos.getX(), (double)pos.getY(), (double)pos.getZ(), world, centreItem);
        // Set the motions to zero to prevent random movement.
        entityitem.motionX = 0;
        entityitem.motionY = 0;
        entityitem.motionZ = 0;
        entityitem.setDefaultPickupDelay();
        world.spawnEntity(entityitem);
    }
1257928
@Override
	public void draw(float x,float y,float width,float height) {
		init();
		draw(x,y,width,height,Color.white);
	}
595471
private void DrawPrimitive( DrawItem i, World w ) throws Exception
    {
        ItemStack item = MinecraftTypeHelper.getItemStackFromDrawItem(i);
        if (item == null)
            throw new Exception("Unrecognised item type: "+i.getType());
        BlockPos pos = new BlockPos( i.getX(), i.getY(), i.getZ() );
        placeItem(item, pos, w, true);
    }
816438
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h,
                                  boolean isSelected) {
        //super.paintTabBorder(g, tabPlacement, tabIndex, x, y, w, h, isSelected);
        if (isSelected) {
            g.setColor(Color.GRAY);
        }
        else {
            g.setColor(Color.LIGHT_GRAY);
        }
        g.drawRect(x + 1, y + 1, w - 2, h - 2);
    }