package com.flansmod.client.model.yeolde;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldRenderer;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.entity.Entity;
public class ModelArrow extends ModelBase
{
public ModelRenderer bulletModel;
public ModelArrow()
{
bulletModel = new ModelRenderer(this, 0, 0);
bulletModel.addBox(-0.5F, -1F, -0.5F, 1, 2, 1);
}
@Override
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
Tessellator tessellator = Tessellator.getInstance();
WorldRenderer worldrenderer = tessellator.getWorldRenderer();
byte var11 = 0;
float var12 = 0.0F;
float var13 = 0.5F;
float var14 = (var11 * 10) / 32.0F;
float var15 = (5 + var11 * 10) / 32.0F;
float var16 = 0.0F;
float var17 = 0.15625F;
float var18 = (5 + var11 * 10) / 32.0F;
float var19 = (10 + var11 * 10) / 32.0F;
float var20 = 0.05625F;
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glRotatef(90F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(45.0F, 1.0F, 0.0F, 0.0F);
GL11.glScalef(var20, var20, var20);
GL11.glTranslatef(-4.0F, 0.0F, 0.0F);
GL11.glNormal3f(var20, 0.0F, 0.0F);
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex(var16, var18).endVertex();
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex(var17, var18).endVertex();
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex(var17, var19).endVertex();
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex(var16, var19).endVertex();
tessellator.draw();
GL11.glNormal3f(-var20, 0.0F, 0.0F);
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
worldrenderer.pos(-7.0D, 2.0D, -2.0D).tex(var16, var18).endVertex();
worldrenderer.pos(-7.0D, 2.0D, 2.0D).tex(var17, var18).endVertex();
worldrenderer.pos(-7.0D, -2.0D, 2.0D).tex(var17, var19).endVertex();
worldrenderer.pos(-7.0D, -2.0D, -2.0D).tex(var16, var19).endVertex();
tessellator.draw();
for (int var23 = 0; var23 < 4; ++var23)
{
GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F);
GL11.glNormal3f(0.0F, 0.0F, var20);
worldrenderer.begin(7, DefaultVertexFormats.POSITION_TEX);
worldrenderer.pos(-8.0D, -2.0D, 0.0D).tex(var12, var14).endVertex();
worldrenderer.pos(8.0D, -2.0D, 0.0D).tex(var13, var14).endVertex();
worldrenderer.pos(8.0D, 2.0D, 0.0D).tex(var13, var15).endVertex();
worldrenderer.pos(-8.0D, 2.0D, 0.0D).tex(var12, var15).endVertex();
tessellator.draw();
}
GL11.glDisable(GL12.GL_RESCALE_NORMAL);
}
public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5)
{
}
}