EntityRegistry.registerModEntity(yourentityclass, "a name", a unique id(number), Yourmainclass.instance, The range at which MC will send tracking updates, The frequency of tracking updates, Whether to send velocity information packets as well);
if you use eclipse, just hover your mouse over the method.