Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

As I mentioned, I am getting java.lang.NullPointerException every time I try to access my own item group or reaching the end All Items or when I give Infused Soul Shard using /give command.

Other items and blocks work fine. Infused Soul Shard is somehow causing game crashes. It works fine when I comment rows 55-169 in items.InfusedSoulShard.

I think that problem is in tooltips, but I'm not really sure. Could anybody help me please? Here's link to my project with log enclosed.

https://github.com/apocalypse3000/jassa

Edited by apocalypse3000

Because your item group is created the minute your first item gets constructed, which is before the fields in your ModItem class have been given values via the @ObjectHolder annotation.

 

This is why ModItemGroup exists:

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/ExpandedIndustry.java#L59

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

How can I implement HardLib to gradle? I tried to add an existing github project to my build.gradle file but all my attempts have failed? I didn't find any HardLib 1.14.4 jar files. Is there any other way make ItemGroup construct after items are given values?

30 minutes ago, apocalypse3000 said:

How can I implement HardLib to gradle? I tried to add an existing github project to my build.gradle file but all my attempts have failed? I didn't find any HardLib 1.14.4 jar files. Is there any other way make ItemGroup construct after items are given values?

Don't. I forgot that that was my class. Just create it yourself in your own project:

 

https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/hardlib/api/internal/ModItemGroup.java

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I am not getting item group errors now, but game still crashes if rows 54-168 in Infused Soul Shard are not commented. I think getItemStackLimit method is extra because my maximum stack size is 1 if soul shard is unbound, but it isn't a reason of crash. Could you check it please?

Man, if only I knew what line the crash was on and what the error was.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

I found out where the problem was. The problem was that I didn't have config variable in main group. I changed MODID to public and added an annotation above class EventHandler. Do I need EasyRegistry items to see them in all items in creative? If I add group(ItemGroup.jassa) to item properties, I can see all items and blocks two times in group jassa.

Edited by apocalypse3000

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.