Package net.minecraft.client.renderer

Examples of net.minecraft.client.renderer.RenderEngine


    }
  }
 
    public void renderRocket(EntityRocket rocket, double x, double y, double z, float yaw, float partialTicks)
    {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
   
    if(renderengine != null)
    {
      renderengine.bindTexture("/textures/itemmodels/powercrystals/minefactoryreloaded/Rocket.png");
    }
   
    GL11.glPushMatrix();
   
    GL11.glTranslatef((float)x, (float)y, (float)z);
View Full Code Here


  }
 
  @Override
  public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float partialTicks)
  {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
    TileEntityRedNetHistorian historian = (TileEntityRedNetHistorian)tileentity;
   
    if(renderengine != null)
    {
      renderengine.bindTexture(MineFactoryReloadedCore.tileEntityFolder + "historian.png");
    }
   
    GL11.glPushMatrix();

    GL11.glTranslatef((float)x, (float)y, (float)z);
View Full Code Here

  }
 
  @Override
  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
   
    if(renderengine != null)
    {
      renderengine.bindTexture(MineFactoryReloadedCore.tileEntityFolder + "cards.png");
    }
   
    GL11.glPushMatrix();
   
    GL11.glTranslatef(-0.5f, 0, 0);
View Full Code Here

  }
 
  @Override
  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
   
    if(renderengine != null)
    {
      renderengine.bindTexture("/textures/itemmodels/powercrystals/minefactoryreloaded/NeedleGun.png");
    }
   
    GL11.glPushMatrix();
   
    if(type == ItemRenderType.EQUIPPED_FIRST_PERSON)
View Full Code Here

  }
 
  @Override
  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
   
    if(renderengine != null)
    {
      renderengine.bindTexture("/textures/itemmodels/powercrystals/minefactoryreloaded/Rocket.png");
    }
   
    GL11.glPushMatrix();
   
    if(type == ItemRenderType.EQUIPPED_FIRST_PERSON)
View Full Code Here

  @SuppressWarnings("deprecation")
  @Override
  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    RenderEngine renderEngine = Minecraft.getMinecraft().renderEngine;
    RenderBlocks renderer = (RenderBlocks)data[0];

    BlockFactoryGlassPane pane = (BlockFactoryGlassPane)Block.blocksList[((ItemBlock)item.getItem()).getBlockID()];

    GL11.glPushMatrix();
    GL11.glDisable(GL11.GL_CULL_FACE);

    Tessellator tessellator = Tessellator.instance;

    if(type == ItemRenderType.INVENTORY)
    {
      GL11.glDisable(GL11.GL_LIGHTING);
      GL11.glScalef(16f, 16f, 16f);
      GL11.glTranslatef(0.5f, 0.5f, 0.5f);

      RenderingRegistry.instance().renderInventoryBlock(renderer, pane, item.getItemDamage(), MineFactoryReloadedCore.renderIdFactoryGlassPane);

      GL11.glTranslatef(-0.5f, -0.5f, -0.5f);
      GL11.glScalef(1 / 16f, 1 / 16f, 1 / 16f);

      if (item.hasEffect())
      {
        GL11.glEnable(GL11.GL_CULL_FACE);
        GL11.glDepthFunc(GL11.GL_GREATER);
        GL11.glDepthMask(false);
        renderEngine.bindTexture("%blur%/misc/glint.png");
        GL11.glEnable(GL11.GL_BLEND);
        GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_DST_COLOR);
        GL11.glColor4f(0.5F, 0.25F, 0.8F, 1.0F);
        GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);
        float f = 0.00390625F;
View Full Code Here

  }
 
  @Override
  public void renderItem(ItemRenderType type, ItemStack item, Object... data)
  {
    RenderEngine renderengine = Minecraft.getMinecraft().renderEngine;
   
    if(renderengine != null)
    {
      renderengine.bindTexture("/textures/itemmodels/powercrystals/minefactoryreloaded/RocketLauncher.png");
    }
   
    GL11.glPushMatrix();
   
    if(type == ItemRenderType.EQUIPPED_FIRST_PERSON)
View Full Code Here

      par2World.setBlockMetadata(par3, par4, par5, metadata);
    }
  }

  private void bindTextureByName(String string) {
    RenderEngine var2 = TileEntityRenderer.instance.renderEngine;

    if (var2 != null) {
      var2.bindTexture(var2.getTexture(string));
    }
  }
View Full Code Here

TOP

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

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.