I've been looking around the internet for a solution to this problem, but I have not been able to find anything.
Here's my problem: I'm trying to create a basic packet that sends a string. I have been following BendrockMiner's tutorials for the most part, but used diesieben07's tutorial for the packets. Minecraft crashes before it finishes startup, throwing an InstantiationException when I try to register the packet. However, neither the packet nor it's handler are abstract or an interface, and both have a nullary constructor (a constructor with no parameters/arguments). What is causing the problem?
I've been looking around the internet for a solution to this problem, but I have not been able to find anything.
Here's my problem: I'm trying to create a basic packet that sends a string. I have been following BendrockMiner's tutorials for the most part, but used diesieben07's tutorial for the packets. Minecraft crashes before it finishes startup, throwing an InstantiationException when I try to register the packet. However, neither the packet nor it's handler are abstract or an interface, and both have a nullary constructor (a constructor with no parameters/arguments). What is causing the problem?
Here are the links to my code on GitHub:
The main mod file
the common proxy(where I register the handlers)
the packet class
If you need anything else from me, just let me know (or you can peruse the GitHub files if it is another file you are looking for).
Thank you in advance,
Padthewolf
I realized there is a better place for this topic. If you want to comment on this, please go here.