use of uk.co.qmunity.lib.client.render.RenderHelper in project BluePower by Qmunity.
the class PartLamp method renderItem.
/**
* @author Koen Beckers (K4Unl)
*/
@Override
@SideOnly(Side.CLIENT)
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
power = (byte) 0;
RenderHelper rh = RenderHelper.instance;
rh.setRenderCoords(null, 0, 0, 0);
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
Tessellator.instance.startDrawingQuads();
renderStatic(new Vec3i(0, 0, 0), rh, RenderBlocks.getInstance(), 0);
Tessellator.instance.draw();
rh.reset();
GL11.glPushMatrix();
renderGlow(1);
GL11.glPopMatrix();
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
}
use of uk.co.qmunity.lib.client.render.RenderHelper in project BluePower by Qmunity.
the class PneumaticTube method renderItem.
@Override
@SideOnly(Side.CLIENT)
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
GL11.glPushMatrix();
GL11.glTranslated(0, -0.125D, 0);
Tessellator t = Tessellator.instance;
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
t.startDrawingQuads();
connections[ForgeDirection.DOWN.ordinal()] = true;
connections[ForgeDirection.UP.ordinal()] = true;
RenderHelper renderer = RenderHelper.instance;
renderer.fullReset();
RenderBlocks rb = new RenderBlocks();
renderStatic(new Vec3i(0, 0, 0), renderer, rb, 0);
renderStatic(new Vec3i(0, 0, 0), renderer, rb, 1);
t.draw();
renderSide();
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationItemsTexture);
GL11.glPopMatrix();
}
Aggregations