Class OBJLoader
- java.lang.Object
-
- net.minecraftforge.client.model.obj.OBJLoader
-
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
,IModelLoader<OBJModel>
,ISelectiveResourceReloadListener
public class OBJLoader extends java.lang.Object implements IModelLoader<OBJModel>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description static OBJLoader
INSTANCE
private IResourceManager
manager
private java.util.Map<ResourceLocation,MaterialLibrary>
materialCache
private java.util.Map<OBJModel.ModelSettings,OBJModel>
modelCache
-
Constructor Summary
Constructors Constructor Description OBJLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaterialLibrary
loadMaterialLibrary(ResourceLocation materialLocation)
OBJModel
loadModel(OBJModel.ModelSettings settings)
void
onResourceManagerReload(IResourceManager resourceManager)
OBJModel
read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraftforge.client.model.IModelLoader
getResourceType, onResourceManagerReload
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
-
-
-
Field Detail
-
INSTANCE
public static OBJLoader INSTANCE
-
modelCache
private final java.util.Map<OBJModel.ModelSettings,OBJModel> modelCache
-
materialCache
private final java.util.Map<ResourceLocation,MaterialLibrary> materialCache
-
manager
private IResourceManager manager
-
-
Method Detail
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager resourceManager)
- Specified by:
onResourceManagerReload
in interfaceIModelLoader<OBJModel>
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
-
read
public OBJModel read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
- Specified by:
read
in interfaceIModelLoader<OBJModel>
-
loadModel
public OBJModel loadModel(OBJModel.ModelSettings settings)
-
loadMaterialLibrary
public MaterialLibrary loadMaterialLibrary(ResourceLocation materialLocation)
-
-