public static enum ModelDynBucket.Loader extends java.lang.Enum<ModelDynBucket.Loader> implements IModelLoader<ModelDynBucket>
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
IResourceTypes
to reload. |
ModelDynBucket |
read(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject modelContents) |
static ModelDynBucket.Loader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModelDynBucket.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, valueOfreloadpublic static final ModelDynBucket.Loader INSTANCE
public static ModelDynBucket.Loader[] values()
for (ModelDynBucket.Loader c : ModelDynBucket.Loader.values()) System.out.println(c);
public static ModelDynBucket.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 IResourceManagerReloadListenergetResourceType in interface IModelLoader<ModelDynBucket>public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload in interface IResourceManagerReloadListeneronResourceManagerReload in interface IModelLoader<ModelDynBucket>onResourceManagerReload 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 IModelLoader<ModelDynBucket>onResourceManagerReload in interface ISelectiveResourceReloadListenerresourceManager - the resource manager being reloadedresourcePredicate - predicate to test whether any given resource type should be reloadedpublic ModelDynBucket read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
read in interface IModelLoader<ModelDynBucket>