Package net.minecraftforge.resource
Enum VanillaResourceType
- java.lang.Object
-
- java.lang.Enum<VanillaResourceType>
-
- net.minecraftforge.resource.VanillaResourceType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VanillaResourceType>,IResourceType
public enum VanillaResourceType extends java.lang.Enum<VanillaResourceType> implements IResourceType
An enum of allIResourceTypes used by the Vanilla game. These should be used if handling vanilla-related resources.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LANGUAGESUsed when the current language is reloaded.MODELSUsed when block and item models are reloaded and rebaked.SHADERSUsed when all shaders are reloaded.SOUNDSUsed when all game sounds are reloaded.TEXTURESUsed when textures from theTextureManagerare reloaded.
-
Constructor Summary
Constructors Modifier Constructor Description privateVanillaResourceType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VanillaResourceTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static VanillaResourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODELS
public static final VanillaResourceType MODELS
Used when block and item models are reloaded and rebaked. This also includes the texture-stitching from that phase.
-
TEXTURES
public static final VanillaResourceType TEXTURES
Used when textures from theTextureManagerare reloaded. Does not effect block or item textures on the texture atlas.
-
SOUNDS
public static final VanillaResourceType SOUNDS
Used when all game sounds are reloaded.
-
LANGUAGES
public static final VanillaResourceType LANGUAGES
Used when the current language is reloaded.
-
SHADERS
public static final VanillaResourceType SHADERS
Used when all shaders are reloaded.
-
-
Method Detail
-
values
public static VanillaResourceType[] 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 (VanillaResourceType c : VanillaResourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VanillaResourceType 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
-
-