Class PotoScreen

java.lang.Object
net.minheur.potoflux.screen.PotoScreen

public class PotoScreen extends Object
The handler for the main potoflux screen
  • Constructor Details

    • PotoScreen

      public PotoScreen()
      Constructor for creating the screen
  • Method Details

    • getTabMap

      public Map<Tab,BaseTab> getTabMap()
      Getter for the tabMap
      Returns:
      the tabMap
    • getFromResourceLoc

      public BaseTab getFromResourceLoc(ResourceLocation loc)
      Gets the tab from its resource location
      Parameters:
      loc - the loc to get the tab from
      Returns:
      the corresponding tab class
    • getFrame

      public JFrame getFrame()
      Getter for the frame
      Returns:
      the frame
    • setOpenedTab

      public void setOpenedTab(Tab tab)
      Sets the opened tab in the app.
      Parameters:
      tab - the tab to be set in the tabs