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
public interface IModelLoader<T extends IModelGeometry<T>> extends ISelectiveResourceReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IResourceType
getResourceType()
void
onResourceManagerReload(IResourceManager resourceManager)
default void
onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively choosesIResourceType
s to reload.T
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 Detail
-
getResourceType
default IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
onResourceManagerReload
void onResourceManagerReload(IResourceManager resourceManager)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
-
onResourceManagerReload
default void onResourceManagerReload(IResourceManager resourceManager, java.util.function.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)
-
-