Jump to content

[1.12] Client side versions of PlayerEvent.Clone and PlayerLoggedOutEvent


Gem2578

Recommended Posts

Hello,

 

I am trying to update a mod to 1.12 from 1.7 but I can't find the client side events I looking for.

I have a Client side capability where there is a Thread to get information from a local socket then it will send it to the server.

 

I would need a PlayerEvent.Clone so I can maintain reference to the Thread and PlayerLoggedOutEvent to stop the Thread when quitting a game But for clients side.

Link to comment
Share on other sites

The type of information I an getting is EEG (Electroencephalography) from the thinkgear connector. I can tell how focus and relax you are and with this information I can make a Sword will do more damage if the player have a higher focus.

 

Here is a link to the old version Neuro Control for 1.7

Edited by Gem2578
Link to comment
Share on other sites

Thank you for the suggestion, FMLNetworkEvent worked. 

 

Now I just need to think of a way to keep or get a reference to the Thread that is connected to the thinkgear connector.

As I am using a Capability attached to the player but as the docs say when the player dies the Capability is loss and PlayerEvent.Clone makes no sense on the client.

 

Maybe a static class with a client side proxy.

 

 

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.