Проблемы с this.bindTexture

package assets.burntout.src;

import org.lwjgl.opengl.GL11;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;


public class RendererTree extends TileEntitySpecialRenderer  {

public static final ResourceLocation texture = new ResourceLocation(ModInf.MODID,"textures/model/Tree.png");


private ModelTree model;

public RendererTree(){

this.model = new ModelTree();

}

public void renderTileEntityAt(TileEntity tileentity, double x, double y,double z, float f) {
GL11.glPushMatrix();
GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
GL11.glRotatef(180, 0, 0, 1F);
GL11.glPushMatrix();
this.model.renderModel(0.0625F);
GL11.glPopMatrix();
GL11.glPopMatrix();
this.bindTexture(texture); //Жалуется вот на эту строчку.
}

Помогите буду очень благодарен.

}
 
Таак.Тяжелый случай.

Private:
private static String texture = "assets/tvoymod/objpapka/tvoyIcon.png";
Texture : Minecraft.getMinecraft().renderEngine.bindTexture(texture);
Вроде так..
 
Назад
Сверху