Java tutorial
package com.eagle.adventurersalchemy.render; import com.eagle.adventurersalchemy.Dictionary; import com.eagle.adventurersalchemy.model.AlchemicalFireModel; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; /** * This class was created by GustoniaEagle. * It is distributed under a part of the Adventurer's Alchemy mod. * https://github.com/GustoniaEagle/ * <p/> * Adventurer's Alchemy is open source, and available under the * GNU General Public License Version 2. * <p/> * File created @ 08/06/2015, 17:17 GMT. */ @SideOnly(Side.CLIENT) public class AlchemicalFireRender extends TileEntitySpecialRenderer { private final AlchemicalFireModel model = new AlchemicalFireModel(); private final ResourceLocation modelTexture = (new ResourceLocation(Dictionary.TEXTURE_ALCHEMICAL_FIRE)); @Override public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float scale) { GL11.glPushMatrix(); GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F); this.bindTexture(modelTexture); GL11.glPushMatrix(); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render(null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); } }