Enum Class VanillaResourceType

java.lang.Object
java.lang.Enum<VanillaResourceType>
net.minecraftforge.resource.VanillaResourceType
All Implemented Interfaces:
Serializable, Comparable<VanillaResourceType>, Constable, IResourceType

public enum VanillaResourceType extends Enum<VanillaResourceType> implements IResourceType
An enum of all IResourceTypes used by the Vanilla game. These should be used if handling vanilla-related resources.
  • Enum Constant Details

    • 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 the TextureManager are 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.
  • Constructor Details

    • VanillaResourceType

      private VanillaResourceType()
  • Method Details

    • values

      public static VanillaResourceType[] 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

      public static VanillaResourceType valueOf(String name)
      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 name
      NullPointerException - if the argument is null