java.lang.Object
de.mrjulsen.mcdragonlib.fabric.client.model.obj.ObjLoader
All Implemented Interfaces:
IGeometryLoader<ObjModel>, net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin

public class ObjLoader extends Object implements net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin, IGeometryLoader<ObjModel>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin

    net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin.Context
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
    static final ObjLoader
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    loadMaterialLibrary(net.minecraft.resources.ResourceLocation materialLocation)
     
    void
    onInitializeModelLoader(net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin.Context ctx)
     
    read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
    • INSTANCE

      public static final ObjLoader INSTANCE
    • OBJ_MARKER

      public static final String OBJ_MARKER
  • Constructor Details

    • ObjLoader

      public ObjLoader()
  • Method Details

    • onInitializeModelLoader

      public void onInitializeModelLoader(net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin.Context ctx)
      Specified by:
      onInitializeModelLoader in interface net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin
    • read

      public ObjModel read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext)
      Specified by:
      read in interface IGeometryLoader<ObjModel>
    • loadMaterialLibrary

      public ObjMaterialLibrary loadMaterialLibrary(net.minecraft.resources.ResourceLocation materialLocation)