What's the difference between EnityPlayer and EntityPlayerMP and Which one should I use?

Started by superpaperboy on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What's the difference between EnityPlayer and EntityPlayerMP and Which one should I use?

Hi I am making a Mob which solely hunts players. Now on paper that doesn't seem so hard and in fact, is incredibly easy! Until I noticed that there are 2 instances of Players. EntityPlayer and EntityPlayerMP. Now I know EntityPlayerMP stands for Multiplayer but the thing is, I'm not sure if I pick that it would run on Singleplayer as well! Now All I really need to know if EntityPlayer is the same as EntityPlayerMP and would work in both Multiplayer or Singleplayer or would I need to check if the world is multiplayer and pick the corresponding entity.

 

Which one should I use?

 

Thanks in advance, Supes.

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The MP means Multiplaye, I…
Mon, 05/24/2021 - 14:34

The MP means Multiplaye, I think.