Package net.minecraftforge.client.model
Interface IModelLoader<T extends IModelGeometry<T>>
- All Superinterfaces:
IFutureReloadListener
,IResourceManagerReloadListener
,ISelectiveResourceReloadListener
- All Known Implementing Classes:
CompositeModel.Loader
,DynamicBucketModel.Loader
,FullPotsAccessorDemo.ClientHandler.DioritePotModelLoader
,ItemLayerModel.Loader
,ModelLoaderRegistry.VanillaProxy.Loader
,MultiLayerModel.Loader
,NewModelLoaderTest.TestLoader
,OBJLoader
,SeparatePerspectiveModel.Loader
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Method Summary
Modifier and TypeMethodDescriptiondefault IResourceType
void
onResourceManagerReload
(IResourceManager resourceManager) default void
onResourceManagerReload
(IResourceManager resourceManager, Predicate<IResourceType> resourcePredicate) A version of onResourceManager that selectively choosesIResourceType
s to reload.read
(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents) Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
Method Details
-
getResourceType
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
-
onResourceManagerReload
default void onResourceManagerReload(IResourceManager resourceManager, Predicate<IResourceType> resourcePredicate) Description copied from interface:ISelectiveResourceReloadListener
A version of onResourceManager that selectively choosesIResourceType
s to reload. When using this, the given predicate should be called to ensure the relevant resources should be reloaded at this time.- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
- Parameters:
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded
-
read
T read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
-