Interface ISelectiveResourceReloadListener

    • Method Detail

      • onResourceManagerReload

        void onResourceManagerReload​(IResourceManager resourceManager,
                                     java.util.function.Predicate<IResourceType> resourcePredicate)
        A version of onResourceManager that selectively chooses IResourceTypes 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 reloaded
        resourcePredicate - predicate to test whether any given resource type should be reloaded