Class TextureImportDialogs

java.lang.Object
net.mcreator.ui.dialogs.TextureImportDialogs

public class TextureImportDialogs extends Object
  • Constructor Details

    • TextureImportDialogs

      public TextureImportDialogs()
  • Method Details

    • importSingleTexture

      public static void importSingleTexture(MCreator mcreator, File file, String message)

      This method opens a dialog to select the texture type to use for the provided texture file.

      Parameters:
      mcreator -

      The instance of MCreator to use

      file -

      The texture file to import

      message -

      The message to display on the option dialog

    • importArmor

      public static void importArmor(MCreator mcreator)
    • importMultipleTextures

      public static void importMultipleTextures(MCreator mcreator, TextureType type)

      This method will open a file dialog to let the user select textures to import. Those textures then be saved as the provided TextureType.

      Parameters:
      mcreator -

      The instance of MCreator to use

      type -

      The texture type to use when importing texture files

    • saveTextures

      public static void saveTextures(MCreator mcreator, TextureType type, File[] textures)

      This is a general method to import a group of textures. It executes everything needed to save textures in the appropriate folder depending on the TextureType.

      Parameters:
      mcreator -

      The instance of MCreator to use

      type -

      The texture type to use when saving texture files

      textures -

      Textures file to import