public class NIF
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
NIF.Node
A single Node and its data in the nif file.
|
static class |
NIF.NodeType |
static class |
NIF.TextureSet
Represents a set of textures on a node of a nif file.
|
Constructor and Description |
---|
NIF(java.io.File f)
Loads in a nif file from the specified file.
|
NIF(java.lang.String filename,
lev.LShrinkArray in)
Creates a NIF object from the given ShrinkArray.
|
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<java.lang.String> |
extractBSTextures(NIF.Node n) |
java.util.Map<java.lang.Integer,lev.LPair<java.lang.String,java.util.ArrayList<java.lang.String>>> |
extractTextures() |
java.util.ArrayList<NIF.TextureSet> |
extractTextureSets() |
java.util.ArrayList<java.util.ArrayList<NIF.Node>> |
getNiTriShapePackages()
A special function that returns sets of nodes each relating to a
NiTriShape package.
|
NIF.Node |
getNode(int i) |
java.util.Map<java.lang.Integer,NIF.Node> |
getNodes(NIF.NodeType type) |
java.lang.String |
getNodeTitle(int i) |
java.util.ArrayList<NIF.NodeType> |
getNodeTypes() |
public NIF(java.io.File f) throws java.io.FileNotFoundException, java.io.IOException, BadParameter
f
- File/path to load nif from.java.io.FileNotFoundException
java.io.IOException
BadParameter
- If the nif file is malformed (by SkyProc's
standards)public NIF(java.lang.String filename, lev.LShrinkArray in) throws BadParameter
filename
- Name to give the NIF object.in
- Nif data to parse and load into the NIF object.BadParameter
- If the data given to parse is malformed (by
SkyProc's standards)public java.util.ArrayList<NIF.NodeType> getNodeTypes()
public NIF.Node getNode(int i)
i
- public java.lang.String getNodeTitle(int i)
i
- public java.util.Map<java.lang.Integer,NIF.Node> getNodes(NIF.NodeType type)
type
- Type to retrieve.public java.util.ArrayList<java.util.ArrayList<NIF.Node>> getNiTriShapePackages()
public java.util.Map<java.lang.Integer,lev.LPair<java.lang.String,java.util.ArrayList<java.lang.String>>> extractTextures()
public java.util.ArrayList<NIF.TextureSet> extractTextureSets()
public static java.util.ArrayList<java.lang.String> extractBSTextures(NIF.Node n)
n
- Node to extract texture names from. Must be a valid
BSShaderTextureSet node or the function will fail.