java.lang.Object
net.neoforged.neoforge.client.model.geometry.SimpleUnbakedGeometry<MultipartObjModel>
de.mrjulsen.mcdragonlib.neoforge.client.model.loaders.MultipartObjModel
All Implemented Interfaces:
net.neoforged.neoforge.client.model.geometry.IUnbakedGeometry<MultipartObjModel>

public class MultipartObjModel extends net.neoforged.neoforge.client.model.geometry.SimpleUnbakedGeometry<MultipartObjModel>
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).

  • Field Details

    • automaticCulling

      public final boolean automaticCulling
    • shadeQuads

      public final boolean shadeQuads
    • flipV

      public final boolean flipV
    • emissiveAmbient

      public final boolean emissiveAmbient
    • mtlOverride

      @Nullable public final @Nullable String mtlOverride
    • modelLocation

      public final net.minecraft.resources.ResourceLocation modelLocation
  • Method Details

    • addPart

      public void addPart(String name, MultipartObjModel.ModelGroup part)
    • getParts

      public Collection<? extends MultipartObjModel.ModelObject> getParts()
    • parse

      public static MultipartObjModel parse(net.neoforged.neoforge.client.model.obj.ObjTokenizer tokenizer, MultipartObjModel.ModelSettings settings) throws IOException
      Throws:
      IOException
    • addQuads

      protected void addQuads(net.neoforged.neoforge.client.model.geometry.IGeometryBakingContext owner, net.neoforged.neoforge.client.model.IModelBuilder<?> modelBuilder, net.minecraft.client.resources.model.ModelBaker baker, Function<net.minecraft.client.resources.model.Material,net.minecraft.client.renderer.texture.TextureAtlasSprite> spriteGetter, net.minecraft.client.resources.model.ModelState modelTransform)
      Specified by:
      addQuads in class net.neoforged.neoforge.client.model.geometry.SimpleUnbakedGeometry<MultipartObjModel>
    • getRootComponentNames

      public Set<String> getRootComponentNames()
    • getConfigurableComponentNames

      public Set<String> getConfigurableComponentNames()
    • bakeRenderable

      public net.neoforged.neoforge.client.model.renderable.CompositeRenderable bakeRenderable(net.neoforged.neoforge.client.model.geometry.IGeometryBakingContext configuration)