Posted July 1, 20169 yr So, I want to add a mob but I don't know how to use the new RenderingRegistry.registerEntityRenderingHandler, what params do I need to put in? http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author How do I make a IRenderFactory is what i mean http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author So I need to implement it? Srry, I don't understand anything without having ever seen a tutorial about it http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author what does the createRenderFor method need to return? http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author Can you put the line of code here, here are the classes: Entityclass : CheeseCow Modelclass : CheeseCowModel Renderclass : CheeseCowRender Rendermanagerclass : CheeseRenderManager http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author I mean from the registerEntityRenderingHandler method, the params (and the createRenderFor method) http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author Let me clear it out: I don't get how to use the new registerEntityRenderingHandler so I ask you if you want to give me the line of code that I can put in my preInit event And my classes (For the params) are: Entityclass : CheeseCow Modelclass : CheeseCowModel Renderclass : CheeseCowRender Rendermanagerclass : CheeseRenderManager http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author Then, what do I need to put in as param that is the IRenderFactory http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author Then, what do I need to return in the createRenderFor method? null? CheeseRenderManager? CheeseCowRender? http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author Ans BTW: If this is SO clear for you, I'm pretty new to java, but I know enough to do basic things but this just... http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author Well, can you tell me what to do if i give you my code (for download)? http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Author UGH, need to stop, need to sleep, can you help me tomorrow? http://i.imgur.com/J4rrGt6.png[/img]
July 1, 20169 yr Holy shit! Thread with about post per 2min! Now that's something. In "old times" you would put your renderer directly to the registry. Someone though "let's make it harder to fk shit up" - that's why factories were added. Now instead of putting renderer you will be putting a factory in preInit, which then (factory) will be called by internals on init and produce a renderer for given entity. So yeah - you basically make new class implementing IRenderFactory<MyEntityRenderer> and make its method return "new MyEntityRenderer(manager)". 1.7.10 is no longer supported by forge, you are on your own.
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.