thebest108 Posted April 27, 2013 Posted April 27, 2013 Is there a packet that can send an entity reference or something? Quote "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
Raekye Posted April 28, 2013 Posted April 28, 2013 No (a reference is an address in memory, would be pointless to send the server the address of an entity on the server side ) - but you shouldn't need to. Both the client and server keep a "world". You just need to keep in mind that whatever you do has to occur on the server side. Your best bet is to send the entityId (believe the world object has a getEntityById like method). You could also look at data watchers (I'm told the wolf class is a good example) Quote
Recommended Posts
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.