public class OBJLoader extends java.lang.Object implements IModelLoader<OBJModel>
IFutureReloadListener.IStage
Modifier and Type | Field and Description |
---|---|
static OBJLoader |
INSTANCE |
private IResourceManager |
manager |
private java.util.Map<ResourceLocation,MaterialLibrary> |
materialCache |
private java.util.Map<OBJModel.ModelSettings,OBJModel> |
modelCache |
Constructor and Description |
---|
OBJLoader() |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceType, onResourceManagerReload
reload
func_225594_i_
public static OBJLoader INSTANCE
private final java.util.Map<OBJModel.ModelSettings,OBJModel> modelCache
private final java.util.Map<ResourceLocation,MaterialLibrary> materialCache
private IResourceManager manager
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
onResourceManagerReload
in interface IModelLoader<OBJModel>
onResourceManagerReload
in interface ISelectiveResourceReloadListener
public OBJModel read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
read
in interface IModelLoader<OBJModel>
public OBJModel loadModel(OBJModel.ModelSettings settings)
public MaterialLibrary loadMaterialLibrary(ResourceLocation materialLocation)