Class OBJModel
java.lang.Object
net.minecraftforge.client.model.obj.OBJModel
- All Implemented Interfaces:
IModelGeometry<OBJModel>
,IMultipartModelGeometry<OBJModel>
,ISimpleModelGeometry<OBJModel>
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
private class
class
static class
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
private static Vector4f
private static Vector2f[]
final boolean
final boolean
final boolean
final String
final ResourceLocation
private final Map<String,
OBJModel.ModelGroup> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends IModelGeometryPart>
Collection<? extends IModelGeometryPart>
getParts()
makeQuad
(int[][] indices, int tintIndex, Vector4f colorTint, Vector4f ambientColor, TextureAtlasSprite texture, TransformationMatrix transform) static Vector2f
parseVector2
(String[] line) static Vector3f
parseVector3
(String[] line) static Vector4f
parseVector4
(String[] line) static Vector3f
parseVector4To3
(String[] line) private void
putVertexData
(IVertexConsumer consumer, Vector4f position0, Vector2f texCoord0, Vector3f normal0, Vector4f color0, Vector2f uv2, TextureAtlasSprite texture) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.geometry.IMultipartModelGeometry
addQuads, getTextures
Methods inherited from interface net.minecraftforge.client.model.geometry.ISimpleModelGeometry
bake
-
Field Details
-
COLOR_WHITE
-
DEFAULT_COORDS
-
parts
-
positions
-
texCoords
-
normals
-
colors
-
detectCullableFaces
public final boolean detectCullableFaces -
diffuseLighting
public final boolean diffuseLighting -
flipV
public final boolean flipV -
ambientToFullbright
public final boolean ambientToFullbright -
modelLocation
-
materialLibraryOverrideLocation
-
-
Constructor Details
-
OBJModel
OBJModel(LineReader reader, OBJModel.ModelSettings settings) throws IOException - Throws:
IOException
-
-
Method Details
-
parseVector4To3
-
parseVector2
-
parseVector3
-
parseVector4
-
getParts
- Specified by:
getParts
in interfaceIModelGeometry<OBJModel>
- Specified by:
getParts
in interfaceIMultipartModelGeometry<OBJModel>
-
getPart
- Specified by:
getPart
in interfaceIModelGeometry<OBJModel>
- Specified by:
getPart
in interfaceIMultipartModelGeometry<OBJModel>
-
makeQuad
private org.apache.commons.lang3.tuple.Pair<BakedQuad,Direction> makeQuad(int[][] indices, int tintIndex, Vector4f colorTint, Vector4f ambientColor, TextureAtlasSprite texture, TransformationMatrix transform) -
putVertexData
private void putVertexData(IVertexConsumer consumer, Vector4f position0, Vector2f texCoord0, Vector3f normal0, Vector4f color0, Vector2f uv2, TextureAtlasSprite texture)
-