public class SPImporter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SPImporter.DirtyParsingIterator
A rudimentary parser/iterator that returns data of subrecords with the desired
typestring.
|
Constructor and Description |
---|
SPImporter()
A placeholder constructor not meant to be called.
An SPImporter object should only be instantiated as an extended class that overrides the importControl() function. |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<ModListing> |
getActiveModList()
Loads input plugins.txt and reads input the mods the user has active and
returns an ArrayList of the ModListings input load order.
|
static java.util.ArrayList<ModListing> |
getModList()
Will scan the data folder and ModListings for all .esp and .esm files,
regardless of if they are active.
|
static SPImporter.DirtyParsingIterator |
getSubRecordsInGRUPs(ModListing targetMod,
java.lang.String typeString,
java.lang.String... grups)
A rudimentary mod data Iterator that returns data of subrecords matching typestring.
|
static SPImporter.DirtyParsingIterator |
getSubRecordsInGRUPs(java.lang.String typeString,
java.lang.String... grups)
A rudimentary mod data Iterator that returns data of subrecords matching typestring.
|
static java.util.Set<Mod> |
importActiveMods()
Loads input plugins.txt and reads input the mods the user has active, and
loads only those that are also present input the data folder.
|
static java.util.Set<Mod> |
importActiveMods(java.util.ArrayList<GRUP_TYPE> grup_targets)
Loads input plugins.txt and reads input the mods the user has active, and
loads only those that are also present input the data folder.
|
static java.util.Set<Mod> |
importActiveMods(GRUP_TYPE... grup_targets)
Loads input plugins.txt and reads input the mods the user has active, and
loads only those that are also present input the data folder.
|
static java.util.Set<Mod> |
importAllMods()
Imports all mods input the user's Data/ folder, no matter if they are
currently active or not.
|
static java.util.Set<Mod> |
importAllMods(java.util.ArrayList<GRUP_TYPE> grup_targets)
Imports all mods input the user's Data/ folder, no matter if they are
currently active or not.
|
static java.util.Set<Mod> |
importAllMods(GRUP_TYPE... grup_targets)
Imports all mods input the user's Data/ folder, no matter if they are
currently active or not.
|
static Mod |
importMod(ModListing listing,
GRUP_TYPE... grup_targets)
Looks for a mod matching the ModListing inside the given path.
|
static Mod |
importMod(ModListing listing,
java.lang.String path,
GRUP_TYPE... grup_targets)
Looks for a mod matching the ModListing inside the given path.
|
static java.util.Set<Mod> |
importMods(java.util.ArrayList<ModListing> mods)
Looks for mods that match the given ModListings inside the data folder.
|
static java.util.Set<Mod> |
importMods(java.util.ArrayList<ModListing> mods,
java.util.ArrayList<GRUP_TYPE> grup_targets)
Looks for mods that match the given ModListings inside the data folder.
|
static java.util.Set<Mod> |
importMods(java.util.ArrayList<ModListing> mods,
GRUP_TYPE... grup_targets)
Looks for mods that match the given ModListings inside the data folder.
|
static java.util.Set<Mod> |
importMods(java.util.ArrayList<ModListing> mods,
java.lang.String path)
Looks for mods that match the given ModListings input the path specified.
|
static java.util.Set<Mod> |
importMods(java.util.ArrayList<ModListing> mods,
java.lang.String path,
GRUP_TYPE... grup_targets)
Looks for mods that match the given ModListings input the path specified.
|
static void |
runBackgroundImport()
Creates a new thread and runs any code input importControl input the
background.
|
public SPImporter()
public static void runBackgroundImport()
public static java.util.ArrayList<ModListing> getActiveModList() throws java.io.IOException
java.io.IOException
SPGlobal
public static java.util.ArrayList<ModListing> getModList()
SPGlobal
public static java.util.Set<Mod> importAllMods() throws MissingMaster
MissingMaster
public static java.util.Set<Mod> importAllMods(GRUP_TYPE... grup_targets) throws MissingMaster
grup_targets
- Any amount of GRUP targets, separated by commas, that
you wish to import.MissingMaster
SPGlobal
public static java.util.Set<Mod> importAllMods(java.util.ArrayList<GRUP_TYPE> grup_targets) throws MissingMaster
grup_targets
- An arraylist of GRUP_TYPE with the desired types to
importMissingMaster
SPGlobal
public static java.util.Set<Mod> importActiveMods() throws java.io.IOException, MissingMaster
java.io.IOException
MissingMaster
SPGlobal
public static java.util.Set<Mod> importActiveMods(GRUP_TYPE... grup_targets) throws java.io.IOException, MissingMaster
grup_targets
- Any amount of GRUP targets, separated by commas, that
you wish to import.java.io.IOException
MissingMaster
SPGlobal
public static java.util.Set<Mod> importActiveMods(java.util.ArrayList<GRUP_TYPE> grup_targets) throws java.io.IOException, MissingMaster
grup_targets
- An arraylist of GRUP_TYPE with the desired types to
importjava.io.IOException
MissingMaster
SPGlobal
public static java.util.Set<Mod> importMods(java.util.ArrayList<ModListing> mods, GRUP_TYPE... grup_targets) throws MissingMaster
mods
- ModListings to look for and import from the data folder.grup_targets
- Any amount of GRUP targets, separated by commas, that
you wish to import.MissingMaster
SPGlobal
public static java.util.Set<Mod> importMods(java.util.ArrayList<ModListing> mods, java.util.ArrayList<GRUP_TYPE> grup_targets) throws MissingMaster
mods
- ModListings to look for and import from the data folder.grup_targets
- An arraylist of GRUP_TYPE with the desired types to
importMissingMaster
SPGlobal
public static java.util.Set<Mod> importMods(java.util.ArrayList<ModListing> mods) throws MissingMaster
mods
- ModListings to look for and import from the data folder.MissingMaster
SPGlobal
public static java.util.Set<Mod> importMods(java.util.ArrayList<ModListing> mods, java.lang.String path) throws MissingMaster
mods
- ModListings to look for and import from the data folder.path
- Path from patch location to where to load mods from.MissingMaster
public static java.util.Set<Mod> importMods(java.util.ArrayList<ModListing> mods, java.lang.String path, GRUP_TYPE... grup_targets) throws MissingMaster
mods
- ModListings to look for and import from the data folder.path
- Path from patch location to where to load mods from.grup_targets
- Any amount of GRUP targets, separated by commas, that
you wish to import.MissingMaster
public static Mod importMod(ModListing listing, java.lang.String path, GRUP_TYPE... grup_targets) throws BadMod, MissingMaster
listing
- Mod name and suffix to look for.path
- Path to look for the mod data.grup_targets
- Any amount of GRUP targets, separated by commas, that
you wish to import.BadMod
- If SkyProc runs into any unexpected data structures, or
has any error importing a mod at all.MissingMaster
public static Mod importMod(ModListing listing, GRUP_TYPE... grup_targets) throws BadMod, MissingMaster
listing
- Mod name and suffix to look for.grup_targets
- An ArrayList of GRUP targets that you wish to import.BadMod
- If SkyProc runs into any unexpected data structures, or
has any error importing a mod at all.
public Mod importMod(ModListing listing, String path,
ArrayListMissingMaster
public static SPImporter.DirtyParsingIterator getSubRecordsInGRUPs(java.lang.String typeString, java.lang.String... grups)
typeString
- grups
- public static SPImporter.DirtyParsingIterator getSubRecordsInGRUPs(ModListing targetMod, java.lang.String typeString, java.lang.String... grups)
targetMod
- typeString
- grups
-