public interface ISelectiveResourceReloadListener extends IResourceManagerReloadListener
IFutureReloadListener.IStage
Modifier and Type | Method and Description |
---|---|
default void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
onResourceManagerReload(IResourceManager resourceManager,
java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively chooses
IResourceType s
to reload. |
getResourceType, reload
func_225594_i_
default void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
IResourceType
s
to reload.
When using this, the given predicate should be called to ensure the relevant resources should
be reloaded at this time.resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded