March 9, 20232 yr What I'm trying to do is add the items in my inventory to my gui. Should I add extends JFrame and Script to get the active items into the enum InventoryItems Item[] itemsInventory = getInventory().getItems(); here's my GUI class public class Gui extends JFrame { enum InventoryItems { item1, item2, item3; @Override public String toString() { return name().toLowerCase(); } }
March 10, 20232 yr Author The issue with that is that the main gui doesn't extend from Script since it can't have 2 imports to get the inventory directly to the gui.
Create an account or sign in to comment