Enum Class ShaderStage.Type

java.lang.Object
java.lang.Enum<ShaderStage.Type>
net.minecraft.client.gl.ShaderStage.Type
All Implemented Interfaces:
Serializable, Comparable<ShaderStage.Type>, Constable
Enclosing class:
ShaderStage

@Environment(CLIENT) public static enum ShaderStage.Type extends Enum<ShaderStage.Type>
Whether a vertex shader or a fragment shader.
Mappings:
Namespace Name
official epp$a
intermediary net/minecraft/class_281$class_282
named net/minecraft/client/gl/ShaderStage$Type
  • Enum Constant Details

    • VERTEX

      public static final ShaderStage.Type VERTEX
      Mappings:
      Namespace Name Mixin selector
      official a Lepp$a;a:Lepp$a;
      intermediary field_1530 Lnet/minecraft/class_281$class_282;field_1530:Lnet/minecraft/class_281$class_282;
      named VERTEX Lnet/minecraft/client/gl/ShaderStage$Type;VERTEX:Lnet/minecraft/client/gl/ShaderStage$Type;
    • FRAGMENT

      public static final ShaderStage.Type FRAGMENT
      Mappings:
      Namespace Name Mixin selector
      official b Lepp$a;b:Lepp$a;
      intermediary field_1531 Lnet/minecraft/class_281$class_282;field_1531:Lnet/minecraft/class_281$class_282;
      named FRAGMENT Lnet/minecraft/client/gl/ShaderStage$Type;FRAGMENT:Lnet/minecraft/client/gl/ShaderStage$Type;
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official c Lepp$a;c:Ljava/lang/String;
      intermediary field_1526 Lnet/minecraft/class_281$class_282;field_1526:Ljava/lang/String;
      named name Lnet/minecraft/client/gl/ShaderStage$Type;name:Ljava/lang/String;
    • fileExtension

      private final String fileExtension
      Mappings:
      Namespace Name Mixin selector
      official d Lepp$a;d:Ljava/lang/String;
      intermediary field_1528 Lnet/minecraft/class_281$class_282;field_1528:Ljava/lang/String;
      named fileExtension Lnet/minecraft/client/gl/ShaderStage$Type;fileExtension:Ljava/lang/String;
    • glType

      private final int glType
      Mappings:
      Namespace Name Mixin selector
      official e Lepp$a;e:I
      intermediary field_1529 Lnet/minecraft/class_281$class_282;field_1529:I
      named glType Lnet/minecraft/client/gl/ShaderStage$Type;glType:I
    • loadedShaders

      private final Map<String,ShaderStage> loadedShaders
      Mappings:
      Namespace Name Mixin selector
      official f Lepp$a;f:Ljava/util/Map;
      intermediary field_1527 Lnet/minecraft/class_281$class_282;field_1527:Ljava/util/Map;
      named loadedShaders Lnet/minecraft/client/gl/ShaderStage$Type;loadedShaders:Ljava/util/Map;
  • Constructor Details

    • Type

      private Type(String name, String extension, int glType)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepp$a;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_281$class_282;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;I)V
      named <init> Lnet/minecraft/client/gl/ShaderStage$Type;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;I)V
  • Method Details

    • values

      public static ShaderStage.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 ShaderStage.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
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lepp$a;a()Ljava/lang/String;
      intermediary method_1286 Lnet/minecraft/class_281$class_282;method_1286()Ljava/lang/String;
      named getName Lnet/minecraft/client/gl/ShaderStage$Type;getName()Ljava/lang/String;
    • getFileExtension

      public String getFileExtension()
      Mappings:
      Namespace Name Mixin selector
      official b Lepp$a;b()Ljava/lang/String;
      intermediary method_1284 Lnet/minecraft/class_281$class_282;method_1284()Ljava/lang/String;
      named getFileExtension Lnet/minecraft/client/gl/ShaderStage$Type;getFileExtension()Ljava/lang/String;
    • getGlType

      int getGlType()
      Mappings:
      Namespace Name Mixin selector
      official d Lepp$a;d()I
      intermediary method_1287 Lnet/minecraft/class_281$class_282;method_1287()I
      named getGlType Lnet/minecraft/client/gl/ShaderStage$Type;getGlType()I
    • getLoadedShaders

      public Map<String,ShaderStage> getLoadedShaders()
      Returns all loaded shaders of this type, keyed by their names.
      Returns:
      all loaded shaders of this type, keyed by their names
      Mappings:
      Namespace Name Mixin selector
      official c Lepp$a;c()Ljava/util/Map;
      intermediary method_1289 Lnet/minecraft/class_281$class_282;method_1289()Ljava/util/Map;
      named getLoadedShaders Lnet/minecraft/client/gl/ShaderStage$Type;getLoadedShaders()Ljava/util/Map;