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

Started by superpaperboy on Mon, 05/24/2021 - 14:08

Topic category: Help with modding (Java Edition)

Last seen on 02:09, 12. Jul 2021
Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What's the difference between EnityPlayer and EntityPlayerMP and Which one should I use?
Mon, 05/24/2021 - 14:08

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.

Last seen on 19:53, 28. Jul 2021
Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I too was wondering about…
Mon, 05/24/2021 - 14:13

I too was wondering about this.

Last seen on 10:51, 28. Jul 2021
Joined Oct 2019
Points:

User statistics:

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

The MP means Multiplaye, I think.

MP is multiplayer variant …
Tue, 05/25/2021 - 08:33

MP is multiplayer variant (server side entity). You want to use normal in most cases