Well. i fixed some stuff and there is my new class but i still have 4 errors:
public class RcTileEntityRenderer extends TileEntitySpecialRenderer {
public void renderTileEntityAt(TileEntity tileEntity, double d, double d1, double d2, float f) {
GL11.glPushMatrix();
GL11.glTranslatef((float)d, (float)d1, (float)d2);
TileEntity tileEntityRc = tileEntity;
renderBlockRail(tileEntityRc, tileEntity.worldObj, tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, Yuvalmod.RC);
GL11.glPopMatrix();
}
public void renderBlockYour(RcTileEntity tl, World world, int i, int j, int k, Block block) {
Tessellator tessellator = Tessellator.instance;
float f = block.getBlockBrightness(world, i, j, k);
int l = world.getLightBrightnessForSkyBlocks(i, j, k, 0);
int l1 = l % 65536;
int l2 = l / 65536;
tessellator.setColorOpaque_F(f, f, f);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)l1, (float)l2);
int dir = world.getBlockMetadata(i, j, k);
GL11.glPushMatrix();
GL11.glTranslatef(0.5F, 0, 0.5F);
GL11.glRotatef(dir * (-90F), 0F, 1F, 0F);
GL11.glTranslatef(-0.5F, 0, -0.5F);
bindTexture("yourTexturePath");
GL11.glPopMatrix();
}
public RcTileEntityRenderer()
{
model = new Rcmodel();
}
public static final ResourceLocation texture = new ResourceLocation("Yuvalmod", "textures/models/mytexture");
}