Jump to content

[1.9] ClientProxy declare an entity texture whith the new constructor


perromercenary00

Recommended Posts

goo d days

 

well i made a simple entity and a render, and i declare them in the client proxy doing

 

RenderingRegistry.registerEntityRenderingHandler(mercenarymod.entidades.entidadAgujero.entidadAgujero.class,
new mercenarymod.entidades.entidadAgujero.renderAgujero( Minecraft.getMinecraft().getRenderManager()) ); 

 

and its works but registerEntityRenderingHandler is market as deprecated iknow i must declare it whith the other constructor

 

public static <T extends Entity> void registerEntityRenderingHandler(Class<T> entityClass, IRenderFactory<? super T> renderFactory)

 

this IRenderFactory class i don't get how to use it or create whatever.

 

###############

Someone could give mi a working example of this ??

 

 

 

 

Link to comment
Share on other sites

hi thanks

like 3 weeks ago i try the same but could solve the error it shows

 

but now pop up the opciont to convert the project to java 1.8 and resolve the underliying errors

ending like this

 

but is not loading the model is just a white big box,

cuadro00.png

 

 

for testing propourses im using the arrow model  exactly the yellow tipped so it must look like

width=800 height=500http://s22.postimg.org/hvhu29oz5/Pantallazo_1.png[/img]

 

 

i been reading about and it seems like    cosa ::new  ==  new  cosa();

but seems not posible to pass the RenderManager this way

 

how do you solve this

 

entidadAgujero.java

https://gist.github.com/anonymous/379b026a3ec2591aa0441ffa5840b66f

 

renderAgujero

https://gist.github.com/anonymous/ef0d82f49ba11c37911773804bead0dc

 

client proxy

https://gist.github.com/anonymous/73ba2b09e1b36d5dedea4edfe026f1db

 

 

thanks for reading

 

 

 

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.