public class ObjFileImporter extends java.lang.Object implements IModelLoader
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
currentLine
Current line being parsed.
|
protected java.lang.String |
currentShape
Current shape name.
|
protected static java.util.regex.Pattern |
facePattern
Pattern for face data.
|
protected java.util.List<Face> |
faces
List of
faces used for the MalisisModel. |
protected int |
lineNumber
Current line number.
|
protected static java.util.regex.Pattern |
linePattern
Pattern for lines.
|
protected java.util.regex.Matcher |
matcher
Matcher object.
|
protected java.util.List<Vector> |
normals
List of vertex normals used for the
MalisisModel. |
protected java.util.Map<java.lang.String,Shape> |
shapes
Map of the
shapes used for the MalisisModel. |
protected java.util.List<net.malisis.core.renderer.model.loader.ObjFileImporter.UV> |
uvs
List of UV used for the
MalisisModel. |
protected java.util.List<Vertex> |
vertexes
List of
vertexes used for the MalisisModel. |
| Constructor and Description |
|---|
ObjFileImporter(java.io.InputStream inputStream)
Instantiates a new
ObjFileImporter from InputStream. |
ObjFileImporter(net.minecraft.util.ResourceLocation resourceLocation)
Instantiates a new
ObjFileImporter from a ResourceLocation. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,Shape> |
getShapes()
Gets the shapes.
|
void |
load(java.io.InputStream inputStream)
Loads the shapes from
InputStream. |
void |
load(net.minecraft.util.ResourceLocation resourceLocation)
Load the shapes from a
ResourceLocation. |
protected static java.util.regex.Pattern linePattern
protected static java.util.regex.Pattern facePattern
protected java.util.regex.Matcher matcher
protected java.lang.String currentLine
protected int lineNumber
protected java.lang.String currentShape
protected java.util.List<Vertex> vertexes
vertexes used for the MalisisModel.protected java.util.List<net.malisis.core.renderer.model.loader.ObjFileImporter.UV> uvs
MalisisModel.protected java.util.List<Vector> normals
MalisisModel.protected java.util.List<Face> faces
faces used for the MalisisModel.protected java.util.Map<java.lang.String,Shape> shapes
shapes used for the MalisisModel.public ObjFileImporter(net.minecraft.util.ResourceLocation resourceLocation)
ObjFileImporter from a ResourceLocation.resourceLocation - the resource locationpublic ObjFileImporter(java.io.InputStream inputStream)
ObjFileImporter from InputStream.inputStream - the input streampublic java.util.Map<java.lang.String,Shape> getShapes()
getShapes in interface IModelLoaderpublic void load(net.minecraft.util.ResourceLocation resourceLocation)
ResourceLocation.resourceLocation - the resource locationpublic void load(java.io.InputStream inputStream)
InputStream.inputStream - the input stream