Package net.minecraftforge.client.model
Enum DynamicBucketModel.Loader
- java.lang.Object
-
- java.lang.Enum<DynamicBucketModel.Loader>
-
- net.minecraftforge.client.model.DynamicBucketModel.Loader
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DynamicBucketModel.Loader>
,IFutureReloadListener
,IResourceManagerReloadListener
,IModelLoader<DynamicBucketModel>
,ISelectiveResourceReloadListener
- Enclosing class:
- DynamicBucketModel
public static enum DynamicBucketModel.Loader extends java.lang.Enum<DynamicBucketModel.Loader> implements IModelLoader<DynamicBucketModel>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
Loader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceType
getResourceType()
void
onResourceManagerReload(IResourceManager resourceManager)
void
onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively choosesIResourceType
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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final DynamicBucketModel.Loader INSTANCE
-
-
Method Detail
-
values
public static DynamicBucketModel.Loader[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DynamicBucketModel.Loader c : DynamicBucketModel.Loader.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicBucketModel.Loader valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getResourceType
public IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIModelLoader<DynamicBucketModel>
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager resourceManager)
- Specified by:
onResourceManagerReload
in interfaceIModelLoader<DynamicBucketModel>
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
Description copied from interface:ISelectiveResourceReloadListener
A version of onResourceManager that selectively choosesIResourceType
s to reload. When using this, the given predicate should be called to ensure the relevant resources should be reloaded at this time.- Specified by:
onResourceManagerReload
in interfaceIModelLoader<DynamicBucketModel>
- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
- Parameters:
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded
-
read
public DynamicBucketModel read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)
- Specified by:
read
in interfaceIModelLoader<DynamicBucketModel>
-
-