package MysticWorld.Renderer; import org.lwjgl.opengl.GL11; import cpw.mods.fml.client.FMLClientHandler; import MysticWorld.Blocks.BlockHandler; import MysticWorld.Model.ModelPillarInsert; import MysticWorld.TileEntity.TileEntityPillarInsert; import net.minecraft.block.Block; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; public class TileEntityPillarInsertRenderer extends TileEntitySpecialRenderer { private static final ResourceLocation texture = new ResourceLocation("mystictextures:textures" + "/blocks/PillarInsert.png"); private ModelPillarInsert model; public TileEntityPillarInsertRenderer() { model = new ModelPillarInsert(); } public void renderAModelAt(TileEntityPillarInsert tileentity, double d, double d1, double d2, float f) { GL11.glPushMatrix(); GL11.glTranslatef((float)d + 0.5F, (float)d1 + 1.52F, (float)d2 + 0.5F); GL11.glRotatef(180F, 0F, 0F, 1F); this.func_110628_a(texture); GL11.glPushMatrix(); model.renderModel(0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } public void renderTileEntityAt(TileEntity tileentity, double d, double d1, double d2, float f) { renderAModelAt((TileEntityPillarInsert)tileentity, d, d1, d2, f); } }