I followed a guide to get my mod setup and have been referencing Minecraft's own code for a lot of my mod. I'm trying to make a gun item that launches a projectile when you right click with it.
Here is the code for the projectile:
This bit works fine, I haven't put much into it because I just copied the functions over from the snowball class.
This is where I'm storing the EntityTypes:
I copied this from the EntityType class. It tells me that Registry.ENTITY_TYPE is deprecated, hence the @SupressWarnings line. No errors here.
This is where I have all of the SubscribeEvent annotations:
The setup function was copied from the guide I followed, which I couldn't figure out how to use with Entities so I just put ModEntityType.LASGUN_SHOT there. Eclipse doesn't show an error here, but the logs do. Here is latest.log:
ModEventSubscriber:26 is the line that says ModEntityType.LASGUN_SHOT inside the registerAll parameters.
Thanks for your help and if there is anything else I got wrong or should fix, please tell me.