@Deprecated public interface ICustomModelLoader extends ISelectiveResourceReloadListener
IFutureReloadListener.IStage| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ResourceLocation modelLocation)
Deprecated.
Checks if given model should be loaded by this loader.
|
default IResourceType |
getResourceType()
Deprecated.
|
IUnbakedModel |
loadModel(ResourceLocation modelLocation)
Deprecated.
|
void |
onResourceManagerReload(IResourceManager resourceManager)
Deprecated.
|
default void |
onResourceManagerReload(IResourceManager resourceManager,
java.util.function.Predicate<IResourceType> resourcePredicate)
Deprecated.
A version of onResourceManager that selectively chooses
IResourceTypes
to reload. |
reloadvoid onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload in interface IResourceManagerReloadListeneronResourceManagerReload in interface ISelectiveResourceReloadListenerdefault void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
ISelectiveResourceReloadListenerIResourceTypes
to reload.
When using this, the given predicate should be called to ensure the relevant resources should
be reloaded at this time.onResourceManagerReload in interface ISelectiveResourceReloadListenerresourceManager - the resource manager being reloadedresourcePredicate - predicate to test whether any given resource type should be reloadedboolean accepts(ResourceLocation modelLocation)
modelLocation - The path, either to an actual file or a ModelResourceLocation.IUnbakedModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
modelLocation - The model to (re)load, either path to an
actual file or a ModelResourceLocation.java.lang.Exceptiondefault IResourceType getResourceType()
getResourceType in interface IResourceManagerReloadListener