Jump to content

Mob textures not working


SkillCakey

Recommended Posts

I can hear the mob sounds, see the shadow and hit the mob, but i can't see the mob.

 

 

 

Here's my RenderCutey.java file:

 

 

 

package com.skillcakey.cakeymod.mobs.render;

 

 

 

import com.skillcakey.cakeymod.mobs.Cutey;

 

import com.skillcakey.cakeymod.mobs.entity.EntityCutey;

 

 

 

import net.minecraft.client.model.ModelBase;

 

import net.minecraft.client.renderer.entity.RenderLiving;

 

import net.minecraft.entity.Entity;

 

import net.minecraft.entity.EntityLiving;

 

import net.minecraft.util.ResourceLocation;

 

 

 

public class RenderCutey extends RenderLiving{

 

public static final ResourceLocation EntityTexture = new ResourceLocation("cakeymod:textures/mobs/cutey.png");

 

protected Cutey model;

 

public RenderCutey(ModelBase par1ModelBase, float par2) {

 

super(par1ModelBase, par2);

 

model = ((Cutey)mainModel);

 

}

 

public void renderCutey(EntityCutey entity, double par2, double par4, double par6, float par8, float par9) {

 

super.doRender(entity, par2, par4, par6, par8, par9);

 

}

 

 

 

public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) {

 

renderCutey((EntityCutey)par1EntityLiving, par2, par4, par6, par8, par9);

 

}

 

public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {

 

renderCutey((EntityCutey)par1Entity, par2, par4, par6, par8, par9);

 

}

 

 

 

@Override

 

protected ResourceLocation getEntityTexture(Entity entity) {

 

 

 

return EntityTexture;

 

}

 

 

 

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.