Package net.minecraft.client.renderer

Examples of net.minecraft.client.renderer.RenderBlocks


    int ppi = 0;
    int column = 0;
    int row = 0;
    FontRenderer fontRenderer = mc.fontRenderer;
    RenderItem renderItem = new RenderItem();
    RenderBlocks renderBlocks = new RenderBlocks();
    renderItem.renderWithColor = color;
    for(ItemIdentifierStack itemStack: _allItems) {
      if(itemStack == null) {
        column++;
        if(column >= columns) {
View Full Code Here


    public CartRender()
    {
        this.shadowSize = 0.5F;
        this.modelCart = new ModelPullcart();
        renderblocks = new RenderBlocks();
    }
View Full Code Here

    @Override
    public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
        // should be impossible to happen, but rather be safe

        RenderBlocks renderblocks = (RenderBlocks) data[0];
        Block block = Block.getBlockFromItem(item.getItem());
        int meta = item.getItemDamage();

        if(item.hasTagCompound() && item.getTagCompound().hasKey("Fluid"))
        {
            FluidStack liquid = FluidStack.loadFluidStackFromNBT(item.getTagCompound().getCompoundTag("Fluid"));
            if(liquid != null && liquid.getFluid().getBlock() != null)
            {
                GL11.glEnable(GL11.GL_BLEND);
                float height = (float)liquid.amount / 4000f - 0.01f;
                renderblocks.setRenderBounds(0.01, 0.01, 0.01, 0.99, height, 0.99);
                ItemHelper.renderStandardInvBlock(renderblocks, liquid.getFluid().getBlock(), 0);
                GL11.glDisable(GL11.GL_BLEND);
            }
        }

        GL11.glEnable(GL11.GL_ALPHA_TEST);
        renderblocks.setRenderBounds(0, 0, 0, 1, 1, 1);
        //ItemHelper.renderStandardInvBlock(renderblocks, block, meta);
        RenderingRegistry.instance().renderInventoryBlock(renderblocks, block, meta, TankRender.tankModelID);
        GL11.glDisable(GL11.GL_ALPHA_TEST);
    }
View Full Code Here

    if (RenderManager.instance == null
        || RenderManager.instance.renderEngine == null) {
      return;
    }

    RenderBlocks renderBlocks = (RenderBlocks) data[0];

    GL11.glPushMatrix();
    GL11.glDisable(GL11.GL_LIGHTING);

    if (item.getItem() == BuildCraftSilicon.robotItem) {
View Full Code Here

TOP

Related Classes of net.minecraft.client.renderer.RenderBlocks

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.