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?