public class ResourceLoader
extends java.lang.Object
implements net.minecraftforge.resource.ISelectiveResourceReloadListener
| Modifier and Type | Field and Description |
|---|---|
static PixelmonModelBase |
DUMMY |
| Constructor and Description |
|---|
ResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.concurrent.Future<T> |
addTask(java.util.concurrent.Callable<T> callable) |
void |
onResourceManagerReload(net.minecraft.resources.IResourceManager resourceManager,
java.util.function.Predicate<net.minecraftforge.resource.IResourceType> resourcePredicate)
A version of onResourceManager that selectively chooses
IResourceTypes
to reload. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonResourceManagerReloadpublic static final PixelmonModelBase DUMMY
public static <T> java.util.concurrent.Future<T> addTask(java.util.concurrent.Callable<T> callable)
public void onResourceManagerReload(net.minecraft.resources.IResourceManager resourceManager,
java.util.function.Predicate<net.minecraftforge.resource.IResourceType> resourcePredicate)
IResourceTypes
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 net.minecraftforge.resource.ISelectiveResourceReloadListenerresourceManager - the resource manager being reloadedresourcePredicate - predicate to test whether any given resource type should be reloaded