Posted June 8, 20178 yr I know that WorldClient is client-side only, so I'm assuming that all the entities in WorldClient::getLoadedEntityList are client-side only. Does this mean that I can cast player entities in WorldClient::getLoadedEntityList to EntityPlayerSPs, the client-side player type? (EntityPlayer is what I am casting to at the moment, but I am wondering if there is something more specific I can use.) Edited June 8, 20178 yr by Draconwolver
June 8, 20178 yr Author 4 minutes ago, diesieben07 said: EntityPlayerSP would be the player controlling the game. Other players on the client are EntityOtherPlayerMP. Their common supertype is AbstractClientPlayer. Whoops, I should've looked at the type hierarchy... Thank you.
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.