Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void renderAModelAt(TileEntityIcicle tileEntity, double x, double y, double z, float f)
- {
- int meta = 0;
- if(tileEntity.getWorldObj() != null)
- {
- meta = tileEntity.getBlockMetadata();
- }
- FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation(Arcticraft.MOD_ID, "textures/blocks/modeled_blocks/icicle.png"));
- GL11.glPushMatrix();
- GL11.glEnable(GL11.GL_NORMALIZE);
- GL11.glEnable(GL11.GL_BLEND);
- GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
- GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
- GL11.glScalef(1.0F, -1F, -1F);
- GL11.glRotatef(meta * 90, 0.0F, 1.0F, 0.0F);
- if(BlockIcicle.icicles[0] != null)
- {
- //large
- GL11.glScalef(1.2F, 1.0F, 1F);
- }
- else if(BlockIcicle.icicles[1] != null)
- {
- //regular
- GL11.glScalef(2.0F, 1F, 1F);
- }
- else if(BlockIcicle.icicles[3] != null)
- {
- //small
- GL11.glScalef(1.0F, 1F, 1F);
- }
- model.renderAll();
- GL11.glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement