public static enum DynamicBucketModel.Loader extends java.lang.Enum<DynamicBucketModel.Loader> implements IModelLoader<DynamicBucketModel>
IFutureReloadListener.IStage
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
IResourceType |
getResourceType() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
onResourceManagerReload(IResourceManager resourceManager,
java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively chooses
IResourceType s
to reload. |
DynamicBucketModel |
read(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject modelContents) |
static DynamicBucketModel.Loader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DynamicBucketModel.Loader[] |
values()
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
func_225594_i_
public static final DynamicBucketModel.Loader INSTANCE
public static DynamicBucketModel.Loader[] values()
for (DynamicBucketModel.Loader c : DynamicBucketModel.Loader.values()) System.out.println(c);
public static DynamicBucketModel.Loader 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 IResourceType getResourceType()
getResourceType
in interface IResourceManagerReloadListener
getResourceType
in interface IModelLoader<DynamicBucketModel>
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
onResourceManagerReload
in interface IModelLoader<DynamicBucketModel>
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 IModelLoader<DynamicBucketModel>
onResourceManagerReload
in interface ISelectiveResourceReloadListener
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloadedpublic DynamicBucketModel read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
read
in interface IModelLoader<DynamicBucketModel>