ActuallyAdditions/src/main/java/ellpeck/someprettytechystuff/blocks/models/RendererCrucibleFire.java
2015-01-05 22:14:04 +01:00

29 lines
1 KiB
Java

package ellpeck.someprettytechystuff.blocks.models;
import ellpeck.someprettytechystuff.util.Util;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
public class RendererCrucibleFire extends TileEntitySpecialRenderer{
public static final ResourceLocation resLoc = new ResourceLocation(Util.MOD_ID, "textures/blocks/models/modelCrucibleFire.png");
private ModelCrucibleFire model;
public RendererCrucibleFire(){
this.model = new ModelCrucibleFire();
}
public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float par5) {
GL11.glPushMatrix();
GL11.glTranslatef((float)x + 0.5F, (float)y + 1.5F, (float)z + 0.5F);
GL11.glRotatef(180, 0F, 0F, 1F);
this.bindTexture(resLoc);
GL11.glPushMatrix();
this.model.render(0.0625F);
GL11.glPopMatrix();
GL11.glPopMatrix();
}
}