Class CustomTexture

java.lang.Object
net.mcreator.workspace.resources.Texture
net.mcreator.workspace.resources.CustomTexture

public final class CustomTexture extends Texture
A texture created or imported as a resource of a workspace.
  • Method Details

    • getTextureFile

      public File getTextureFile()
    • getTextureIcon

      public ImageIcon getTextureIcon(Workspace workspace)
      Specified by:
      getTextureIcon in class Texture
    • getTexturesOfType

      public static List<Texture> getTexturesOfType(Workspace workspace, TextureType type)
      Scans the workspace and collects all the available custom textures of a certain type.
      Parameters:
      workspace - The workspace to collect icons for.
      type - The type of the textures to collect.
      Returns:
      The list of custom textures available in the provided workspace.