Jump to content

Textures won't load for custom mob


FrankFilthy

Recommended Posts

Hi, I am using 1.7.10 and am trying to make a bipedal mob but the textures won't load. I am pretty sure the models are loading because the mobs are invisible which makes me believe the textures simply are not loading, and when I get rid of the RenderingRegistry in renderThings, the mobs become gray rectangles. Also, my texture is stored in 

src/main/resources/assets/bobby/textures/entity/Wakandan.png

 

This is my Rendering Class

 

public class RenderWakandan extends RenderLiving {

    private static final ResourceLocation mobTextures = new ResourceLocation("bobby:textures/entity/Wakandan.png");
    
    public RenderWakandan(ModelBase parModelBase, float par2) {
        super(parModelBase, par2);
        
    }
    
    protected ResourceLocation getEntityTexture(EntityWakandan entity) {
        return mobTextures;
    }

    @Override
    protected ResourceLocation getEntityTexture(Entity entity) {
        return this.getEntityTexture((EntityWakandan)entity);
    }

}
 

This is my Client Proxy Class

 

public class ClientProxy extends CommonProxy{
    
    public void renderThings() {
        RenderingRegistry.registerEntityRenderingHandler(EntityWakandan.class, new RenderWakandan(new Wakandan(), 0));
        ItemHandler.render();
        BlockHandler.render();
        ToolHandler.render();
        ArmorHandler.render();
        
    }
    public void openGui() {
        Minecraft.getMinecraft().displayGuiScreen(new GuiWakandanFurnace());
    }
}
 

 

Edited by FrankFilthy
Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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