Class AbstractRecipeMaker

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.mcreator.ui.minecraft.recipemakers.AbstractRecipeMaker
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
BlastFurnaceRecipeMaker, BrewingRecipeMaker, CampfireCookingRecipeMaker, CraftingRecipeMaker, SmeltingRecipeMaker, SmithingRecipeMaker, SmokerRecipeMaker, StoneCutterRecipeMaker

public abstract class AbstractRecipeMaker extends JPanel
Abstract class for recipe makers used in the Recipe element GUI. This class handles the background panel and the export button.
See Also:
  • Field Details

    • export

      protected final JButton export
    • imagePanel

      protected final ImagePanel imagePanel
  • Constructor Details

    • AbstractRecipeMaker

      protected AbstractRecipeMaker(Image backgroundImage)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • setupImageExport

      protected abstract void setupImageExport(boolean exportedYet)
      This method is called before and after the recipe is exported as a .png file.
      Parameters:
      exportedYet - This parameter is false before the image is generated, true after.