Package net.minecraftforge.client.model
Enum Class DynamicBucketModel.Loader
- All Implemented Interfaces:
Serializable
,Comparable<DynamicBucketModel.Loader>
,Constable
,PreparableReloadListener
,ResourceManagerReloadListener
,IModelLoader<DynamicBucketModel>
- 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.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onResourceManagerReload
(ResourceManager resourceManager) 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.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
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
-
onResourceManagerReload
- Specified by:
onResourceManagerReload
in interfaceResourceManagerReloadListener
-
read
public DynamicBucketModel read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents) - Specified by:
read
in interfaceIModelLoader<DynamicBucketModel>
-