Enum Class CompiledShader.Type

java.lang.Object
java.lang.Enum<CompiledShader.Type>
com.mojang.blaze3d.shaders.CompiledShader.Type
All Implemented Interfaces:
Serializable, Comparable<CompiledShader.Type>, Constable
Enclosing class:
CompiledShader

public static enum CompiledShader.Type extends Enum<CompiledShader.Type>
  • Enum Constant Details

  • Field Details

    • TYPES

      private static final CompiledShader.Type[] TYPES
    • name

      private final String name
    • extension

      private final String extension
    • glType

      private final int glType
  • Constructor Details

    • Type

      private Type(String p_366858_, String p_366601_, int p_366748_)
  • Method Details

    • values

      public static CompiledShader.Type[] 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 CompiledShader.Type 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
    • byLocation

      @Nullable public static CompiledShader.Type byLocation(ResourceLocation p_366905_)
    • getName

      public String getName()
    • glType

      public int glType()
    • idConverter

      public FileToIdConverter idConverter()