Jump to content

Recommended Posts

Posted

I am trying to get a list of players to iterate through however

List<EntityPlayer> players = mc.theWorld.playerEntities; does not seem to be working once you leave chunks or those players leave chunks.

Posted

On the server (this will not work on the client):

FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerList().getPlayerList()

Im sorry but I just noticed I worded it terribly, I meant I want a list of the loaded players entities on the players client.

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.