2013-10-27 06:20:58 +00:00
|
|
|
package biomesoplenty.entities.render;
|
|
|
|
|
|
|
|
import net.minecraft.client.renderer.entity.RenderLiving;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
2013-10-30 07:29:02 +00:00
|
|
|
|
|
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
|
2013-10-27 06:20:58 +00:00
|
|
|
import biomesoplenty.entities.models.ModelWasp;
|
2013-10-30 07:29:02 +00:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2013-10-27 06:20:58 +00:00
|
|
|
|
2013-10-30 07:29:02 +00:00
|
|
|
@SideOnly(Side.CLIENT)
|
2013-10-27 06:20:58 +00:00
|
|
|
public class RenderWasp extends RenderLiving
|
|
|
|
{
|
|
|
|
public RenderWasp()
|
|
|
|
{
|
|
|
|
super(new ModelWasp(), 0.25F);
|
2013-10-27 08:45:13 +00:00
|
|
|
this.shadowSize = 0.0F;
|
2013-10-27 06:20:58 +00:00
|
|
|
}
|
|
|
|
|
2013-10-30 07:29:02 +00:00
|
|
|
@Override
|
|
|
|
protected void preRenderCallback(EntityLivingBase entity, float partialTickTime)
|
|
|
|
{
|
|
|
|
GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
|
|
|
|
GL11.glTranslatef(0.0F, 0.75F, 0.0F);
|
|
|
|
}
|
|
|
|
|
2013-10-27 06:20:58 +00:00
|
|
|
@Override
|
|
|
|
protected ResourceLocation getEntityTexture(Entity entity)
|
|
|
|
{
|
|
|
|
return new ResourceLocation("biomesoplenty:textures/mobs/wasp.png");
|
|
|
|
}
|
|
|
|
}
|