类 ObjLoader
java.lang.Object
net.minecraftforge.client.model.obj.ObjLoader
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.
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明static ObjLoader
private ResourceManager
private final Map
<ResourceLocation, ObjMaterialLibrary> private final Map
<ObjModel.ModelSettings, ObjModel> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明loadMaterialLibrary
(ResourceLocation materialLocation) loadModel
(ObjModel.ModelSettings settings) void
onResourceManagerReload
(ResourceManager resourceManager) read
(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
从接口继承的方法 net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
字段详细资料
-
INSTANCE
-
modelCache
-
materialCache
-
manager
-
-
构造器详细资料
-
ObjLoader
public ObjLoader()
-
-
方法详细资料
-
onResourceManagerReload
-
read
public ObjModel read(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext deserializationContext) - 指定者:
read
在接口中IGeometryLoader<ObjModel>
-
loadModel
-
loadMaterialLibrary
-