Minecraft Forge event.entity vs event.player

634 views Asked by At

I am new to Minecraft modding and I noticed that sometimes, when changing the players motion, they use

EntityPlayer player = event.player;

and other times they use as below:

EntityPlayer player = (EntityPlayer) event.entity;

What is the difference between these two methods?

0

There are 0 answers