Class ObjLoader
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadMaterialLibrary(net.minecraft.resources.ResourceLocation materialLocation) voidonInitializeModelLoader(net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin.Context ctx) read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext)
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID -
INSTANCE
-
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:
onInitializeModelLoaderin interfacenet.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin
-
read
public ObjModel read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext) - Specified by:
readin interfaceIGeometryLoader<ObjModel>
-
loadMaterialLibrary
public ObjMaterialLibrary loadMaterialLibrary(net.minecraft.resources.ResourceLocation materialLocation)
-