Enum Class ShaderType

java.lang.Object
java.lang.Enum<ShaderType>
net.minecraft.client.gl.ShaderType
All Implemented Interfaces:
Serializable, Comparable<ShaderType>, Constable

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

    • VERTEX

      public static final ShaderType VERTEX
      Mappings:
      Namespace Name Mixin selector
      named VERTEX Lnet/minecraft/client/gl/ShaderType;VERTEX:Lnet/minecraft/client/gl/ShaderType;
      intermediary field_1530 Lnet/minecraft/class_282;field_1530:Lnet/minecraft/class_282;
      official a Lfky;a:Lfky;
    • FRAGMENT

      public static final ShaderType FRAGMENT
      Mappings:
      Namespace Name Mixin selector
      named FRAGMENT Lnet/minecraft/client/gl/ShaderType;FRAGMENT:Lnet/minecraft/client/gl/ShaderType;
      intermediary field_1531 Lnet/minecraft/class_282;field_1531:Lnet/minecraft/class_282;
      official b Lfky;b:Lfky;
  • Field Details

    • VALUES

      private static final ShaderType[] VALUES
      Mappings:
      Namespace Name Mixin selector
      named VALUES Lnet/minecraft/client/gl/ShaderType;VALUES:[Lnet/minecraft/client/gl/ShaderType;
      intermediary field_53830 Lnet/minecraft/class_282;field_53830:[Lnet/minecraft/class_282;
      official c Lfky;c:[Lfky;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/client/gl/ShaderType;name:Ljava/lang/String;
      intermediary field_1526 Lnet/minecraft/class_282;field_1526:Ljava/lang/String;
      official d Lfky;d:Ljava/lang/String;
    • fileExtension

      private final String fileExtension
      Mappings:
      Namespace Name Mixin selector
      named fileExtension Lnet/minecraft/client/gl/ShaderType;fileExtension:Ljava/lang/String;
      intermediary field_1528 Lnet/minecraft/class_282;field_1528:Ljava/lang/String;
      official e Lfky;e:Ljava/lang/String;
  • Constructor Details

    • ShaderType

      private ShaderType(String name, String fileExtension)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gl/ShaderType;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_282;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
      official <init> Lfky;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
  • Method Details

    • values

      public static ShaderType[] 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 ShaderType 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
    • fromId

      @Nullable public static @Nullable ShaderType fromId(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named fromId Lnet/minecraft/client/gl/ShaderType;fromId(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/gl/ShaderType;
      intermediary method_62884 Lnet/minecraft/class_282;method_62884(Lnet/minecraft/class_2960;)Lnet/minecraft/class_282;
      official a Lfky;a(Lalk;)Lfky;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/client/gl/ShaderType;getName()Ljava/lang/String;
      intermediary method_1286 Lnet/minecraft/class_282;method_1286()Ljava/lang/String;
      official a Lfky;a()Ljava/lang/String;
    • createFinder

      public ResourceFinder createFinder()
      Mappings:
      Namespace Name Mixin selector
      named createFinder Lnet/minecraft/client/gl/ShaderType;createFinder()Lnet/minecraft/resource/ResourceFinder;
      intermediary method_62885 Lnet/minecraft/class_282;method_62885()Lnet/minecraft/class_7654;
      official b Lfky;b()Lald;