public abstract class SinglePreparationResourceReloadListener<T> extends Object implements ResourceReloadListener
ResourceReloadListener.Synchronizer| Constructor and Description |
|---|
SinglePreparationResourceReloadListener() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
apply(T loader,
ResourceManager manager,
Profiler profiler) |
protected abstract T |
prepare(ResourceManager manager,
Profiler profiler) |
CompletableFuture<Void> |
reload(ResourceReloadListener.Synchronizer synchronizer,
ResourceManager manager,
Profiler prepareProfiler,
Profiler applyProfiler,
Executor prepareExecutor,
Executor applyExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic SinglePreparationResourceReloadListener()
public final CompletableFuture<Void> reload(ResourceReloadListener.Synchronizer synchronizer, ResourceManager manager, Profiler prepareProfiler, Profiler applyProfiler, Executor prepareExecutor, Executor applyExecutor)
reload in interface ResourceReloadListenerprotected abstract T prepare(ResourceManager manager, Profiler profiler)
protected abstract void apply(T loader, ResourceManager manager, Profiler profiler)