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 Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionstatic ObjLoader
private ResourceManager
private final Map<ResourceLocation,
ObjMaterialLibrary> private final Map<ObjModel.ModelSettings,
ObjModel> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadMaterialLibrary
(ResourceLocation materialLocation) loadModel
(ObjModel.ModelSettings settings) void
onResourceManagerReload
(ResourceManager resourceManager) 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
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Field Details
-
INSTANCE
-
modelCache
-
materialCache
-
manager
-
-
Constructor Details
-
ObjLoader
public ObjLoader()
-
-
Method Details
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
read
public ObjModel read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext) - Specified by:
read
in interfaceIGeometryLoader<ObjModel>
-
loadModel
-
loadMaterialLibrary
-