Jump to content

[1.15.2] The field "listeners" in class "Container" should be make public or protected


Recommended Posts

A lot of server to client data synchronization needs the list of all players who is using the GUI.
In previous versions, this can be done by reading "listeners" field in my own implementation of "detectAndSendChanges". However, this field becomes private in 1.15.2. Does that mean we have to track the listeners by our self, or is there a more elegant way of doing this?




Forge Version 31.1.47

  • Like 1

My mod: SimElectricity - High Voltages, Electrical Power Transmission & Distribution


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.