Package net.minecraftforge.resource
Interface ISelectiveResourceReloadListener
-
- All Superinterfaces:
IFutureReloadListener
,IResourceManagerReloadListener
- All Known Subinterfaces:
IModelLoader<T>
- All Known Implementing Classes:
B3DLoader
,CompositeModel.Loader
,DynamicBucketModel.Loader
,FullPotsAccessorDemo.ClientHandler.DioritePotModelLoader
,ItemLayerModel.Loader
,ModelLoaderRegistry.VanillaProxy.Loader
,MultiLayerModel.Loader
,NewModelLoaderTest.TestLoader
,OBJLoader
,SeparatePerspectiveModel.Loader
public interface ISelectiveResourceReloadListener extends IResourceManagerReloadListener
-
-
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 void
onResourceManagerReload(IResourceManager resourceManager)
void
onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively choosesIResourceType
s to reload.-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
getResourceType, reload
-
-
-
-
Method Detail
-
onResourceManagerReload
default void onResourceManagerReload(IResourceManager resourceManager)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
onResourceManagerReload
void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
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.- Parameters:
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded
-
-