Jump to content

ModLoader classification and mob rendering. (Only one renderer can be assigned)


Recommended Posts

Since I'm pretty sure the Forge guys are trying to keep it totally ModLoader-compatible (correct me if I'm wrong), I have a bug to submit as to entity rendering.  Please do not tell me to change anything in my code, I simply want to know if this is a Forge bug and make it known to somebody.


If I were to use the BaseMod.addRenderer class in a BaseMod extension file:


public void addRenderer (Map<Class<? extends Entity>, Render> map)
    map.put(EntityExample.class, new RenderTest(new ModelTest(), 0.5F));
    map.put(EntityExample2.class, new RenderTest2(new ModelTest2(), 0.5F));


In this case any entities I register in the load() method are assigned to the first renderer.  Spawning both EntityExample and EntityExample2 will produce a render of EntityExample.  It is a separate entity, since I can change entity properties such as dropFewItems() normally.  So if anyone has any information as to why this is happening or if I can expect this to be fixed at all, that would be great.

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.

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.


  • Create New...

Important Information

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