Class OBJModel
java.lang.Object
net.minecraftforge.client.model.obj.OBJModel
- All Implemented Interfaces:
IModelGeometry<OBJModel>,IMultipartModelGeometry<OBJModel>,ISimpleModelGeometry<OBJModel>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassprivate classclassstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanprivate static Vector4fprivate static Vector2f[]final booleanfinal booleanfinal booleanfinal Stringfinal ResourceLocationprivate final Map<String,OBJModel.ModelGroup> -
Constructor Summary
Constructors -
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 Vector2fparseVector2(String[] line) static Vector3fparseVector3(String[] line) static Vector4fparseVector4(String[] line) static Vector3fparseVector4To3(String[] line) private voidputVertexData(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, waitMethods inherited from interface net.minecraftforge.client.model.geometry.IMultipartModelGeometry
addQuads, getTexturesMethods 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:
getPartsin interfaceIModelGeometry<OBJModel>- Specified by:
getPartsin interfaceIMultipartModelGeometry<OBJModel>
-
getPart
- Specified by:
getPartin interfaceIModelGeometry<OBJModel>- Specified by:
getPartin 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)
-