@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
IResourceType s
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, valueOf
reload
public 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)
ICustomModelLoader
accepts
in interface ICustomModelLoader
modelLocation
- The path, either to an actual file or a ModelResourceLocation
.public IUnbakedModel loadModel(ResourceLocation modelLocation)
loadModel
in interface ICustomModelLoader
modelLocation
- The model to (re)load, either path to an
actual file or a ModelResourceLocation
.public IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener
getResourceType
in interface ICustomModelLoader
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
onResourceManagerReload
in interface ICustomModelLoader
onResourceManagerReload
in interface ISelectiveResourceReloadListener
public void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
ISelectiveResourceReloadListener
IResourceType
s
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 ICustomModelLoader
onResourceManagerReload
in interface ISelectiveResourceReloadListener
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded@Deprecated public void register(AtlasTexture map)