@Deprecated public static enum ModelDynBucket.LoaderDynBucket extends java.lang.Enum<ModelDynBucket.LoaderDynBucket> implements ICustomModelLoader
IFutureReloadListener.IStage| Enum Constant and Description |
|---|
INSTANCE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ResourceLocation modelLocation)
Deprecated.
Checks if given model should be loaded by this loader.
|
IResourceType |
getResourceType()
Deprecated.
|
IUnbakedModel |
loadModel(ResourceLocation modelLocation)
Deprecated.
|
void |
onResourceManagerReload(IResourceManager resourceManager)
Deprecated.
|
void |
onResourceManagerReload(IResourceManager resourceManager,
java.util.function.Predicate<IResourceType> resourcePredicate)
Deprecated.
A version of onResourceManager that selectively chooses
IResourceTypes
to reload. |
void |
register(AtlasTexture map)
Deprecated.
|
static ModelDynBucket.LoaderDynBucket |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ModelDynBucket.LoaderDynBucket[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfreloadpublic static final ModelDynBucket.LoaderDynBucket INSTANCE
public static ModelDynBucket.LoaderDynBucket[] values()
for (ModelDynBucket.LoaderDynBucket c : ModelDynBucket.LoaderDynBucket.values()) System.out.println(c);
public static ModelDynBucket.LoaderDynBucket valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean accepts(ResourceLocation modelLocation)
ICustomModelLoaderaccepts in interface ICustomModelLoadermodelLocation - The path, either to an actual file or a ModelResourceLocation.public IUnbakedModel loadModel(ResourceLocation modelLocation)
loadModel in interface ICustomModelLoadermodelLocation - The model to (re)load, either path to an
actual file or a ModelResourceLocation.public IResourceType getResourceType()
getResourceType in interface IResourceManagerReloadListenergetResourceType in interface ICustomModelLoaderpublic void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload in interface IResourceManagerReloadListeneronResourceManagerReload in interface ICustomModelLoaderonResourceManagerReload in interface ISelectiveResourceReloadListenerpublic void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
ISelectiveResourceReloadListenerIResourceTypes
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 ICustomModelLoaderonResourceManagerReload in interface ISelectiveResourceReloadListenerresourceManager - the resource manager being reloadedresourcePredicate - predicate to test whether any given resource type should be reloaded@Deprecated public void register(AtlasTexture map)