Class ObjLoader
java.lang.Object
net.minecraftforge.client.model.obj.ObjLoader
- All Implemented Interfaces:
- PreparableReloadListener,- ResourceManagerReloadListener,- IGeometryLoader<ObjModel>
public class ObjLoader
extends Object
implements IGeometryLoader<ObjModel>, ResourceManagerReloadListener
A loader for 
OBJ models.
 
 Allows the user to enable automatic face culling, toggle quad shading, flip UVs, render emissively and specify a
 material library override.
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenerPreparableReloadListener.PreparationBarrier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic ObjLoaderprivate ResourceManagerprivate final Map<ResourceLocation,ObjMaterialLibrary> private final Map<ObjModel.ModelSettings,ObjModel> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionloadMaterialLibrary(ResourceLocation materialLocation) loadModel(ObjModel.ModelSettings settings) voidonResourceManagerReload(ResourceManager resourceManager) read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListenergetNameMethods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListenerreload
- 
Field Details- 
INSTANCE
- 
modelCache
- 
materialCache
- 
manager
 
- 
- 
Constructor Details- 
ObjLoaderpublic ObjLoader()
 
- 
- 
Method Details- 
onResourceManagerReload- Specified by:
- onResourceManagerReloadin interface- ResourceManagerReloadListener
 
- 
readpublic ObjModel read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext) - Specified by:
- readin interface- IGeometryLoader<ObjModel>
 
- 
loadModel
- 
loadMaterialLibrary
 
-