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

Started by superpaperboy on

Topic category: Help with modding (Java Edition)

Last seen on 22:43, 10. Apr 2023
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.

Last seen on 04:15, 27. Mar 2024
Joined May 2018
Points:

User statistics:

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

I too was wondering about this.

Last seen on 15:38, 1. Dec 2022
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.

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