use FMLCommonHandler instead of player.worldObj