Package org.spoutcraft.api.block.design

Examples of org.spoutcraft.api.block.design.BlockDesign.renderItemstack()


      }
    }

    if (design != null) {
      GL11.glDisable(GL11.GL_LIGHTING);
      design.renderItemstack(null, -0.5F, -0.5F, -0.5F, 0, 1F, rand);
      GL11.glEnable(GL11.GL_LIGHTING);
    }
    else if(var4block != null && RenderBlocks.renderItemIn3d(var4block.getRenderType())) {
      this.renderBlocksInstance.renderBlockAsItem(Block.blocksList[par2ItemStack.itemID], par2ItemStack.getItemDamage(), 1.0F);
    } else {
View Full Code Here


      }
      GL11.glEnable(GL12.GL_RESCALE_NORMAL);

      if (design != null && custom) {
        //GL11.glScalef(0.25F, 0.25F, 0.25F);
        design.renderItemstack(par1EntityItem.getEntityItem(), (float)par2, (float)(par4 + var11), (float)par6, var12, 0.25F, random);
      } else {
        GL11.glPushMatrix(); // the push from above
        if (!custom) {
          if (var10.itemID < 256) {
            Minecraft.getMinecraft().getTextureManager().bindTexture(new ResourceLocation("textures/atlas/blocks.png"));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.