Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.