Package net.mcreator.ui.dialogs
Class TextureImportDialogs
java.lang.Object
net.mcreator.ui.dialogs.TextureImportDialogs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
importArmor
(MCreator mcreator) static void
importMultipleTextures
(MCreator mcreator, TextureType type) This method will open a file dialog to let the user select textures to import.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.static void
saveTextures
(MCreator mcreator, TextureType type, File[] textures) This is a general method to import a group of textures.
-
Constructor Details
-
TextureImportDialogs
public TextureImportDialogs()
-
-
Method Details
-
importSingleTexture
This method opens a dialog to select the texture type to use for the provided texture file.
- Parameters:
mcreator
-The instance of
MCreator
to usefile
-The texture file to import
message
-The message to display on the option dialog
-
importArmor
-
importMultipleTextures
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 usetype
-The texture type to use when importing texture files
-
saveTextures
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 usetype
-The texture type to use when saving texture files
textures
-Textures file to import
-