Skip to content

Instantly share code, notes, and snippets.

@zombiepigcreeper
Created January 8, 2012 19:47
Show Gist options
  • Save zombiepigcreeper/1579444 to your computer and use it in GitHub Desktop.
Save zombiepigcreeper/1579444 to your computer and use it in GitHub Desktop.
package net.minecraft.src;
import org.lwjgl.opengl.GL11;
public class RenderBigDragonFly extends RenderLiving
{
private float scale;
public RenderBigDragonFly(ModelBase modelbase, float f, float f1)
{
super(modelbase, f * f1);
scale = f1;
}
public void renderBigDragonFly(EntityBigDragonFly entitybigdragonfly, double d, double d1, double d2,
float f, float f1)
{
super.doRenderLiving(entitybigdragonfly, d, d1, d2, f, f1);
}
public void doRenderLiving(EntityLiving entityliving, double d, double d1, double d2,
float f, float f1)
{
renderBigDragonFly((EntityBigDragonFly)entityliving, d, d1, d2, f, f1);
}
public void doRender(Entity entity, double d, double d1, double d2,
float f, float f1)
{
renderBigDragonFly((EntityBigDragonFly)entity, d, d1, d2, f, f1);
}
protected void preRenderScale(EntityBigDragonFly entitybigdragonfly, float f)
{
GL11.glScalef(scale, scale, scale);
}
protected void preRenderCallback(EntityLiving entityliving, float f)
{
preRenderScale((EntityBigDragonFly)entityliving, f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment