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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListenerIFutureReloadListener.IStage
- 
Enum Constant SummaryEnum Constants
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidonResourceManagerReload(IResourceManager resourceManager) voidonResourceManagerReload(IResourceManager resourceManager, Predicate<IResourceType> resourcePredicate) A version of onResourceManager that selectively choosesIResourceTypes to reload.read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents) static DynamicBucketModel.LoaderReturns 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.Enumclone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.minecraft.resources.IFutureReloadListenergetNameMethods inherited from interface net.minecraft.resources.IResourceManagerReloadListenerreload
- 
Enum Constant Details- 
INSTANCE
 
- 
- 
Constructor Details- 
Loaderprivate Loader()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getResourceType- Specified by:
- getResourceTypein interface- IModelLoader<DynamicBucketModel>
- Specified by:
- getResourceTypein interface- IResourceManagerReloadListener
 
- 
onResourceManagerReload- Specified by:
- onResourceManagerReloadin interface- IModelLoader<DynamicBucketModel>
- Specified by:
- onResourceManagerReloadin interface- IResourceManagerReloadListener
- Specified by:
- onResourceManagerReloadin interface- ISelectiveResourceReloadListener
 
- 
onResourceManagerReloadpublic void onResourceManagerReload(IResourceManager resourceManager, Predicate<IResourceType> resourcePredicate) Description copied from interface:ISelectiveResourceReloadListenerA version of onResourceManager that selectively choosesIResourceTypes to reload. When using this, the given predicate should be called to ensure the relevant resources should be reloaded at this time.- Specified by:
- onResourceManagerReloadin interface- IModelLoader<DynamicBucketModel>
- Specified by:
- onResourceManagerReloadin interface- ISelectiveResourceReloadListener
- Parameters:
- resourceManager- the resource manager being reloaded
- resourcePredicate- predicate to test whether any given resource type should be reloaded
 
- 
readpublic DynamicBucketModel read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents) - Specified by:
- readin interface- IModelLoader<DynamicBucketModel>
 
 
-