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 final record -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanprivate static Vector4fprivate static Vec2[]final booleanfinal booleanfinal booleanfinal Stringfinal ResourceLocationprivate final Map<String,OBJModel.ModelGroup> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbakeRenderable(IModelConfiguration configuration) Optional<? extends IModelGeometryPart>Collection<? extends IModelGeometryPart>getParts()makeQuad(int[][] indices, int tintIndex, Vector4f colorTint, Vector4f ambientColor, TextureAtlasSprite texture, Transformation transform) static Vec2parseVector2(String[] line) static Vector3fparseVector3(String[] line) static Vector4fparseVector4(String[] line) static Vector3fparseVector4To3(String[] line) private voidputVertexData(IVertexConsumer consumer, Vector4f position0, Vec2 texCoord0, Vector3f normal0, Vector4f color0, Vec2 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, Transformation transform) -
putVertexData
private void putVertexData(IVertexConsumer consumer, Vector4f position0, Vec2 texCoord0, Vector3f normal0, Vector4f color0, Vec2 uv2, TextureAtlasSprite texture) -
bakeRenderable
-