BiomesOPlenty/common/biomesoplenty/entities/render/RenderJungleSpider.java

39 lines
1,022 B
Java
Raw Normal View History

package biomesoplenty.entities.render;
import net.minecraft.client.renderer.entity.RenderSpider;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
2013-07-09 03:55:12 +00:00
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
import biomesoplenty.entities.EntityJungleSpider;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class RenderJungleSpider extends RenderSpider
{
public RenderJungleSpider()
{
this.shadowSize *= 0.0F;
}
protected void scaleSpider(EntityJungleSpider entityjunglespider, float par2)
{
GL11.glScalef(0.4F, 0.4F, 0.3F);
}
@Override
protected void preRenderCallback(EntityLivingBase par1EntityLivingBase, float par2)
{
this.scaleSpider((EntityJungleSpider)par1EntityLivingBase, par2);
}
@Override
2013-09-13 08:17:21 +00:00
protected ResourceLocation getEntityTexture(Entity entity)
{
return new ResourceLocation("biomesoplenty:textures/mobs/junglespider.png");
}
}