TheDav1311 Posted October 4, 2014 Posted October 4, 2014 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? Quote
larsgerrits Posted October 4, 2014 Posted October 4, 2014 On the client side, there's only ever one player ( Minecraft.getMinecraft().thePlayer ). Quote 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/
Tslat Posted October 4, 2014 Posted October 4, 2014 Minecraft.getMinecraft().thePlayer Perhaps? Quote
TheDav1311 Posted October 4, 2014 Author Posted October 4, 2014 2 Things: First: Quote 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. Quote
Tslat Posted October 4, 2014 Posted October 4, 2014 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? Quote
TheDav1311 Posted October 4, 2014 Author Posted October 4, 2014 I want to have a player list on both sides. And here all players at the client side: Minecraft.getMinecraft().theWorld.playerEntities; Quote
larsgerrits Posted October 4, 2014 Posted October 4, 2014 You can probably iterate through the ArrayList and then check if the name is the name you want. Quote 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/
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.