Java tutorial
/** * This class was created by <ArekkuusuJerii>. It's distributed as * part of the Grimoire Of Alice Mod. Get the Source Code in github: * https://github.com/ArekkuusuJerii/Grimore-Of-Alice * * Grimoire Of Alice is Open Source and distributed under the * Grimoire Of Alice license: https://github.com/ArekkuusuJerii/Grimoire-Of-Alice/blob/master/LICENSE.md */ package arekkuusu.grimoireOfAlice.client.render; import org.lwjgl.opengl.GL11; import arekkuusu.grimoireOfAlice.client.model.ModelHolyKeyStone; import arekkuusu.grimoireOfAlice.lib.LibMod; import arekkuusu.grimoireOfAlice.tmp.CleanupDone; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; @CleanupDone public class RenderHolyKeyStone extends TileEntitySpecialRenderer { private static final ResourceLocation TEXTURE = new ResourceLocation(LibMod.MODID, "textures/models/HolyKeyStone.png"); private static final ModelHolyKeyStone MODEL = new ModelHolyKeyStone(); @Override public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float p_147500_8_) { GL11.glPushMatrix(); GL11.glTranslatef((float) x + 0.5F, (float) y + 1.4F, (float) z + 0.5F); GL11.glRotatef(180, 0F, 0f, 1f); bindTexture(TEXTURE); MODEL.render(null, 0F, 0F, 0F, 0F, 0F, 0.0625F); GL11.glPopMatrix(); } }