package net.TrashLand.renderer;
import org.lwjgl.opengl.GL11;
import net.TrashLand.model.ModelRefinery;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
public class RendererRefinery extends TileEntitySpecialRenderer {
private static final ResourceLocation texture = new ResourceLocation("trashlandmain", "textures/model/refinery.png");
private ModelRefinery model;
public RendererRefinery() {
this.model = new ModelRefinery();
}
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, 1);
this.bindTexture(texture);
GL11.glPushMatrix();
this.model.renderModel(0.0625F);
GL11.glPopMatrix();
GL11.glPopMatrix();
}
}
I have double checked and this is not a texture error
Can someone please tell me what I'm doing wrong?
If you take a look at the model file, there is 3 seperate tubes, all called the same thing. Change the name to tube1, tube2, and tube 3.
The columns have also the same issue. Change them to column 1 and column 2.
What the block looks like in Techne:
What the block looks like in-game:
My block's Model class:
My block's renderer class:
I have double checked and this is not a texture error
Can someone please tell me what I'm doing wrong?
If you take a look at the model file, there is 3 seperate tubes, all called the same thing. Change the name to tube1, tube2, and tube 3.
The columns have also the same issue. Change them to column 1 and column 2.