Package net.minecraftforge.client.model
Enum Class DynamicBucketModel.Loader
- All Implemented Interfaces:
Serializable
,Comparable<DynamicBucketModel.Loader>
,Constable
,IFutureReloadListener
,IResourceManagerReloadListener
,IModelLoader<DynamicBucketModel>
,ISelectiveResourceReloadListener
- Enclosing class:
- DynamicBucketModel
public static enum DynamicBucketModel.Loader
extends Enum<DynamicBucketModel.Loader>
implements IModelLoader<DynamicBucketModel>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onResourceManagerReload
(IResourceManager resourceManager) void
onResourceManagerReload
(IResourceManager resourceManager, Predicate<IResourceType> resourcePredicate) A version of onResourceManager that selectively choosesIResourceType
s to reload.read
(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents) static DynamicBucketModel.Loader
Returns the enum constant of this class with the specified name.static DynamicBucketModel.Loader[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, 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 Details
-
INSTANCE
-
-
Constructor Details
-
Loader
private Loader()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getResourceType
- Specified by:
getResourceType
in interfaceIModelLoader<DynamicBucketModel>
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceIModelLoader<DynamicBucketModel>
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager resourceManager, 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>
-