Class ObjModel
java.lang.Object
net.minecraftforge.client.model.geometry.SimpleUnbakedGeometry<ObjModel>
net.minecraftforge.client.model.obj.ObjModel
- All Implemented Interfaces:
- IUnbakedGeometry<ObjModel>
A model loaded from an OBJ file.
 
 Supports positions, texture coordinates, normals and colors. The material library
 has support for numerous features, including support for ResourceLocation textures (non-standard).
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassprivate classclassstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal booleanprivate static final org.joml.Vector4fprivate final List<org.joml.Vector4f>private static final Vec2[]final booleanfinal booleanfinal ResourceLocationfinal @Nullable Stringprivate final List<org.joml.Vector3f>private final Map<String,ObjModel.ModelGroup> private final List<org.joml.Vector3f>final boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddQuads(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) bakeRenderable(IGeometryBakingContext configuration) Returns a set of all the components whose visibility may be configured viaIGeometryBakingContext.makeQuad(int[][] indices, int tintIndex, org.joml.Vector4f colorTint, org.joml.Vector4f ambientColor, TextureAtlasSprite texture, Transformation transform) static ObjModelparse(ObjTokenizer tokenizer, ObjModel.ModelSettings settings) private static Vec2parseVector2(String[] line) private static org.joml.Vector3fparseVector3(String[] line) (package private) static org.joml.Vector4fparseVector4(String[] line) private static org.joml.Vector3fparseVector4To3(String[] line) Methods inherited from class net.minecraftforge.client.model.geometry.SimpleUnbakedGeometrybakeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.client.model.geometry.IUnbakedGeometryresolveParents
- 
Field Details- 
COLOR_WHITEprivate static final org.joml.Vector4f COLOR_WHITE
- 
DEFAULT_COORDS
- 
parts
- 
rootComponentNames
- 
allComponentNames
- 
positions
- 
texCoords
- 
normals
- 
colors
- 
automaticCullingpublic final boolean automaticCulling
- 
shadeQuadspublic final boolean shadeQuads
- 
flipVpublic final boolean flipV
- 
emissiveAmbientpublic final boolean emissiveAmbient
- 
mtlOverride
- 
modelLocation
 
- 
- 
Constructor Details- 
ObjModel
 
- 
- 
Method Details- 
parsepublic static ObjModel parse(ObjTokenizer tokenizer, ObjModel.ModelSettings settings) throws IOException - Throws:
- IOException
 
- 
parseVector4To3
- 
parseVector2
- 
parseVector3
- 
parseVector4
- 
addQuadsprotected void addQuads(IGeometryBakingContext owner, IModelBuilder<?> modelBuilder, ModelBaker baker, Function<Material, TextureAtlasSprite> spriteGetter, ModelState modelTransform, ResourceLocation modelLocation) - Specified by:
- addQuadsin class- SimpleUnbakedGeometry<ObjModel>
 
- 
getRootComponentNames
- 
getConfigurableComponentNamesDescription copied from interface:IUnbakedGeometryReturns a set of all the components whose visibility may be configured viaIGeometryBakingContext.- Returns:
- a set of all the components whose visibility may be configured via IGeometryBakingContext
 
- 
makeQuadprivate org.apache.commons.lang3.tuple.Pair<BakedQuad,Direction> makeQuad(int[][] indices, int tintIndex, org.joml.Vector4f colorTint, org.joml.Vector4f ambientColor, TextureAtlasSprite texture, Transformation transform) 
- 
bakeRenderable
 
-