package com.arkcraft.module.creature.client.render; import com.arkcraft.module.core.ARKCraft; import com.arkcraft.module.creature.client.model.ModelSabertooth; import com.arkcraft.module.creature.common.entity.aggressive.EntitySabertooth; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.ResourceLocation; /** * @author wildbill22 */ public class RenderSabertooth extends RenderLiving { protected ModelSabertooth modelEntity; private static final ResourceLocation saberTexture = new ResourceLocation( ARKCraft.MODID + ":textures/model/saber.png"); public RenderSabertooth(ModelBase base, float par2) { super(Minecraft.getMinecraft().getRenderManager(), base, par2); modelEntity = ((ModelSabertooth) mainModel); } @Override protected void preRenderCallback(EntityLivingBase p_77041_1_, float p_77041_2_) { double scale = 0.7; GlStateManager.scale(scale, scale, scale); super.preRenderCallback(p_77041_1_, p_77041_2_); } // Stuff to make the Dodo rotate when floating? public void render(EntitySabertooth entity, double x, double y, double z, float u, float v) { super.doRender(entity, x, y, z, u, v); } public void doRenderLiving(EntityLiving entity, double x, double y, double z, float u, float v) { render((EntitySabertooth) entity, x, y, z, u, v); } public void doRender(Entity entity, double x, double y, double z, float u, float v) { render((EntitySabertooth) entity, x, y, z, u, v); } /** * Returns the location of an entity's texture. */ @Override protected ResourceLocation getEntityTexture(Entity entity) { return saberTexture; } }