Posted October 4, 201411 yr At the server side there is this Method: EntityPlayerMP playerExample = MinecraftServer.getServer().getConfigurationManager().func_152612_a("ExampleGuy"); Is there something like that at the client side?
October 4, 201411 yr On the client side, there's only ever one player ( Minecraft.getMinecraft().thePlayer ). Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
October 4, 201411 yr Author 2 Things: First: Minecraft.getMinecraft().thePlayer Perhaps? I asked to get a player from a String. Second: The client must know the other players to render them, right? And there are EntityClientPlayerMPs and I want to get them.
October 4, 201411 yr The client only needs to know the packets that the SERVER sends it. Your client won't know how to grab another player, because as far as it knows, there are none. What are you trying to achieve that bars you from using server side?
October 4, 201411 yr Author I want to have a player list on both sides. And here all players at the client side: Minecraft.getMinecraft().theWorld.playerEntities;
October 4, 201411 yr You can probably iterate through the ArrayList and then check if the name is the name you want. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
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.