1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package darkknight.jewelrycraft.item.render;
import org.lwjgl.opengl.GL11;
import darkknight.jewelrycraft.model.ModelRing;
import darkknight.jewelrycraft.util.Variables;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
public class RingRender extends TileEntitySpecialRenderer
{
public ModelRing ring = new ModelRing();
ResourceLocation texture = new ResourceLocation(Variables.MODID, "textures/entities/Ring.png");
@Override
public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale)
{
}
public void doRender(Entity entity, double x, double y, double z, float f, float g)
{
GL11.glPushMatrix();
Minecraft.getMinecraft().renderEngine.bindTexture(texture);
if ((float)z != -1) ring.render(entity, 0F, 0F, 0F, (float)z, f, 1.0F);
GL11.glPopMatrix();
}
}
|