I added a GitHub link right after you posted. Thanks for the reply. The first issue is located in Registry.java.
EDIT -
I am debugging, and all the variables for the block are poplulated. However, in the item, the following are null: unlocalizedName, containerItem and tabToDisplayOn. Which would cause an issue and how can I fix them? Thanks.
Hello all,
I am in the process of updating my mod to 1.11, from 1.10.2. I am getting a null pointer exception on this line.
This worked fine in 1.10. What am I doing wrong?
BONUS- What does the resourcelocation argument of
do?
BONUS2- How do I get the set of EntityIDs that are available?
This
used to work, but now ID_TO_CLASS doesn't exist.
EDIT-
Here is my source code: https://github.com/OctopusProteins/MobBlockMod/tree/devel
Thanks in advance for your help!
I added a GitHub link right after you posted. Thanks for the reply. The first issue is located in Registry.java.
EDIT -
I am debugging, and all the variables for the block are poplulated. However, in the item, the following are null: unlocalizedName, containerItem and tabToDisplayOn. Which would cause an issue and how can I fix them? Thanks.
BTW, no problem on the GitHub, I do it too
Thank you for the suggestion. Would I need to call methods from the ModBlocks class anywhere else, like in the main mod class?
Thanks. Is there a list of the new function calls for blocks, items, sounds, world generators, recipes, etc.?
So the types that do not implement still use GameRegistry in 1.12? EX. World Generators (GameRegistry#registerWorldGenerator)
Ok. Thanks for the help. Last question (sorry!) Previously, in my entity class, I registered the SoundEvent to the entity like so:
EDIT: sorry work the use of spoilers - I don't want to commit this code just yet
How would I do this now, if my ModSounds class is like so:
Thank you so mush for all your help. Without you, my next week would have been horrible. You have made my day. Thank you for everything!