You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a custom GUI for an Item, and now I'm trying to make one for List<Item>. There isn't an easy way to do this, so I made a ItemListListEntry class which extends AbstractListListEntry.
The list appears on the config screen, but when I click on the add button or expand the list, the game crashes.
The error:
java.lang.NullPointerException: Cannot invoke "me.shedaniel.clothconfig2.gui.widget.DynamicEntryListWidget.isMouseOver(double, double)" because the return value of "me.shedaniel.clothconfig2.api.AbstractConfigListEntry.getParent()" is null
at me.shedaniel.clothconfig2.api.AbstractConfigListEntry.isMouseInside(AbstractConfigListEntry.java:67)
at me.shedaniel.clothconfig2.api.AbstractConfigListEntry.render(AbstractConfigListEntry.java:72)
at me.shedaniel.clothconfig2.gui.entries.TooltipListEntry.render(TooltipListEntry.java:57)
at me.shedaniel.clothconfig2.gui.entries.DropdownBoxEntry.render(DropdownBoxEntry.java:84)
at net.fabricmc.magic_bowl.ItemListListEntry$ItemListCell.render(ItemListListEntry.java:74)
at me.shedaniel.clothconfig2.gui.entries.BaseListEntry.render(BaseListEntry.java:287)
at net.fabricmc.magic_bowl.ItemListListEntry.render(ItemListListEntry.java:94)
at me.shedaniel.clothconfig2.gui.widget.DynamicEntryListWidget.renderItem(DynamicEntryListWidget.java:494)
at me.shedaniel.clothconfig2.gui.ClothConfigScreen$ListWidget.renderItem(ClothConfigScreen.java:357)
at me.shedaniel.clothconfig2.gui.ClothConfigScreen$ListWidget.renderItem(ClothConfigScreen.java:324)
at me.shedaniel.clothconfig2.gui.widget.DynamicEntryListWidget.renderList(DynamicEntryListWidget.java:489)
at me.shedaniel.clothconfig2.gui.ClothConfigScreen$ListWidget.renderList(ClothConfigScreen.java:369)
at me.shedaniel.clothconfig2.gui.widget.DynamicEntryListWidget.render(DynamicEntryListWidget.java:258)
at me.shedaniel.clothconfig2.gui.widget.DynamicNewSmoothScrollingEntryListWidget.render(DynamicNewSmoothScrollingEntryListWidget.java:131)
at me.shedaniel.clothconfig2.gui.ClothConfigScreen.render(ClothConfigScreen.java:230)
at net.minecraft.client.render.GameRenderer.render(GameRenderer.java:885)
at net.minecraft.client.MinecraftClient.render(MinecraftClient.java:1149)
at net.minecraft.client.MinecraftClient.run(MinecraftClient.java:746)
at net.minecraft.client.main.Main.main(Main.java:191)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:234)
at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:153)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
I made a custom GUI for an
Item
, and now I'm trying to make one forList<Item>
. There isn't an easy way to do this, so I made aItemListListEntry
class which extendsAbstractListListEntry
.The list appears on the config screen, but when I click on the add button or expand the list, the game crashes.
The error:
My
ItemListListEntry
class:The text was updated successfully, but these errors were encountered: