Class ModElementGUI<GE extends GeneratableElement>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, IHelpContext
Direct Known Subclasses:
AchievementGUI, ArmorGUI, BiomeGUI, BlockGUI, CommandGUI, CustomElementGUI, CustomGUIGUI, DamageTypeGUI, DimensionGUI, EnchantmentGUI, FeatureGUI, FluidGUI, FunctionGUI, GameRuleGUI, ItemExtensionGUI, ItemGUI, KeyBindGUI, LivingEntityGUI, LootTableGUI, MusicDiscGUI, OverlayGUI, PaintingGUI, ParticleGUI, PlantGUI, PotionEffectGUI, PotionGUI, ProcedureGUI, ProjectileGUI, RecipeGUI, StructureGUI, TabGUI, ToolGUI, VillagerProfessionGUI, VillagerTradeGUI

public abstract class ModElementGUI<GE extends GeneratableElement> extends ViewBase implements IHelpContext
See Also:
  • Field Details

    • modElement

      @Nonnull protected final ModElement modElement
  • Constructor Details

    • ModElementGUI

      public ModElementGUI(MCreator mcreator, @Nonnull ModElement modElement, boolean editingMode)
  • Method Details

    • addPage

      public final void addPage(JComponent component)
    • addPage

      public final void addPage(JComponent component, boolean scroll)
    • addPage

      public final void addPage(String name, JComponent component)
    • addPage

      public final void addPage(String name, JComponent component, boolean scroll)
    • setTargetFolder

      public void setTargetFolder(@Nullable FolderElement targetFolder)
    • setModElementCreatedListener

      public void setModElementCreatedListener(ModElementGUI.ModElementCreatedListener<GE> modElementCreatedListener)
    • getViewName

      public String getViewName()
      Specified by:
      getViewName in class ViewBase
    • getViewIcon

      public ImageIcon getViewIcon()
      Overrides:
      getViewIcon in class ViewBase
    • showView

      public ViewBase showView()
      Overrides:
      showView in class ViewBase
    • finalizeGUI

      protected final void finalizeGUI()
    • getModElement

      @Nonnull public ModElement getModElement()
    • initGUI

      protected abstract void initGUI()
    • validatePage

      protected abstract AggregatedValidationResult validatePage(int page)
    • afterGeneratableElementStored

      protected void afterGeneratableElementStored()
    • afterGeneratableElementGenerated

      protected void afterGeneratableElementGenerated()
    • allowCodePreview

      protected boolean allowCodePreview()
    • reloadDataLists

      public void reloadDataLists()
    • openInEditingMode

      protected abstract void openInEditingMode(GE generatableElement)
      This method is called to open a mod element in the GUI
    • getElementFromGUI

      public abstract GE getElementFromGUI()
    • isEditingMode

      public final boolean isEditingMode()
    • validateAllPages

      public final AggregatedValidationResult validateAllPages()
    • contextName

      @Nullable public String contextName()
      Specified by:
      contextName in interface IHelpContext
    • withEntry

      @Nullable public IHelpContext withEntry(String entry)
      Specified by:
      withEntry in interface IHelpContext