Created
January 8, 2012 19:47
-
-
Save zombiepigcreeper/1579445 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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