Enum Class VanillaResourceType

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

@Deprecated(since="1.17.1", forRemoval=true) public enum VanillaResourceType extends Enum<VanillaResourceType> implements IResourceType
Deprecated, for removal: This API element is subject to removal in a future version.
Selective reloading is no longer supported due to vanilla now reloading resources in parallel
An enum of all IResourceTypes used by the Vanilla game. These should be used if handling vanilla-related resources.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Used when the current language is reloaded.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Used when block and item models are reloaded and rebaked.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Used when all shaders are reloaded.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Used when all game sounds are reloaded.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Used when textures from the TextureManager are reloaded.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    valueOf​(String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this class with the specified name.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • MODELS

      public static final VanillaResourceType MODELS
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      Used when all game sounds are reloaded.
    • LANGUAGES

      public static final VanillaResourceType LANGUAGES
      Deprecated, for removal: This API element is subject to removal in a future version.
      Used when the current language is reloaded.
    • SHADERS

      public static final VanillaResourceType SHADERS
      Deprecated, for removal: This API element is subject to removal in a future version.
      Used when all shaders are reloaded.
  • Constructor Details

    • VanillaResourceType

      private VanillaResourceType()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • values

      public static VanillaResourceType[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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