package mhfc.net.client.render.block;
import mhfc.net.client.model.block.ModelBBQSpit;
import mhfc.net.common.util.lib.MHFCReference;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
public class RenderBBQSpit extends TileEntitySpecialRenderer {
private ModelBBQSpit model;
public RenderBBQSpit() {
model = new ModelBBQSpit();
}
@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y,
double z, float f) {
GL11.glPushMatrix();
// Tessellator tessellator = Tessellator.instance;
GL11.glTranslatef((float) x + 0.5F, (float) y - -1.5F, (float) z + 0.5F);
GL11.glRotatef(180F, 0F, 0F, 1F);
bindTexture(new ResourceLocation(MHFCReference.tile_bbqspit_tex));
GL11.glPushMatrix();
model.renderModel(0.0625F);
GL11.glPopMatrix();
GL11.glPopMatrix();
}
}