Hey guys, this is my first post. I've looked long and hard to find a solution for this and maybe I'm just bad at searching... But here's the problem.
I'm trying to register my entities (my mods) with the EntityRegistry from net.minecraftforge.fml.common.registry.EntityRegistry. The function and it's parameters are as follows:
private void doModEntityRegistration(Class<? extends Entity> entityClass, String entityName, int id, Object mod, int trackingRange, int updateFrequency, boolean sendsVelocityUpdates)
Now, the ints and boolean are pretty simple for understanding what they do. The entityClass parameter is pretty simple, I pass in MyClass.getClass(). However, the int for id and the Object mod that for the life of me I cannot figure out what to pass in.
I've seen other people making calls that do not require an Object parameter, but those calls are not valid with what I'm working with for some reason. I'm using Forge-1.8.8-18.104.22.1685.
NVM, I derped the first part, either way, the mod variable is your mod instance, which has the @Mod annotation (reference the @Instance annotated variable inside the mod class)
Either way, the id is a unique integer id for the mob, but only pertains to the mod, so mod A and mod B can both use zero for different mobs, but once its used once, it can't be used again by the same mod.