Class CompiledShader

java.lang.Object
net.minecraft.client.gl.CompiledShader
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class CompiledShader extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/gl/CompiledShader
intermediary net/minecraft/class_10141
official fmi
  • Field Details

    • CLOSED

      private static final int CLOSED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CLOSED Lnet/minecraft/client/gl/CompiledShader;CLOSED:I
      intermediary field_53827 Lnet/minecraft/class_10141;field_53827:I
      official b Lfmi;b:I
    • INVALID_SHADER

      public static final CompiledShader INVALID_SHADER
      Mappings:
      Namespace Name Mixin selector
      named INVALID_SHADER Lnet/minecraft/client/gl/CompiledShader;INVALID_SHADER:Lnet/minecraft/client/gl/CompiledShader;
      intermediary field_57880 Lnet/minecraft/class_10141;field_57880:Lnet/minecraft/class_10141;
      official a Lfmi;a:Lfmi;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/client/gl/CompiledShader;id:Lnet/minecraft/util/Identifier;
      intermediary field_53828 Lnet/minecraft/class_10141;field_53828:Lnet/minecraft/class_2960;
      official c Lfmi;c:Lame;
    • handle

      private int handle
      Mappings:
      Namespace Name Mixin selector
      named handle Lnet/minecraft/client/gl/CompiledShader;handle:I
      intermediary field_53829 Lnet/minecraft/class_10141;field_53829:I
      official d Lfmi;d:I
    • shaderType

      private final ShaderType shaderType
      Mappings:
      Namespace Name Mixin selector
      named shaderType Lnet/minecraft/client/gl/CompiledShader;shaderType:Lcom/mojang/blaze3d/shaders/ShaderType;
      intermediary field_57881 Lnet/minecraft/class_10141;field_57881:Lcom/mojang/blaze3d/shaders/ShaderType;
      official e Lfmi;e:Lcom/mojang/blaze3d/shaders/ShaderType;
  • Constructor Details

    • CompiledShader

      public CompiledShader(int handle, Identifier id, ShaderType shaderType)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gl/CompiledShader;<init>(ILnet/minecraft/util/Identifier;Lcom/mojang/blaze3d/shaders/ShaderType;)V
      intermediary <init> Lnet/minecraft/class_10141;<init>(ILnet/minecraft/class_2960;Lcom/mojang/blaze3d/shaders/ShaderType;)V
      official <init> Lfmi;<init>(ILame;Lcom/mojang/blaze3d/shaders/ShaderType;)V
  • Method Details

    • compile

      public static CompiledShader compile(Identifier id, ShaderType type, String source) throws ShaderLoader.LoadException
      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named compile Lnet/minecraft/client/gl/CompiledShader;compile(Lnet/minecraft/util/Identifier;Lcom/mojang/blaze3d/shaders/ShaderType;Ljava/lang/String;)Lnet/minecraft/client/gl/CompiledShader;
      intermediary method_62882 Lnet/minecraft/class_10141;method_62882(Lnet/minecraft/class_2960;Lcom/mojang/blaze3d/shaders/ShaderType;Ljava/lang/String;)Lnet/minecraft/class_10141;
      official a Lfmi;a(Lame;Lcom/mojang/blaze3d/shaders/ShaderType;Ljava/lang/String;)Lfmi;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/client/gl/CompiledShader;getId()Lnet/minecraft/util/Identifier;
      intermediary method_62881 Lnet/minecraft/class_10141;method_62881()Lnet/minecraft/class_2960;
      official a Lfmi;a()Lame;
    • getHandle

      public int getHandle()
      Mappings:
      Namespace Name Mixin selector
      named getHandle Lnet/minecraft/client/gl/CompiledShader;getHandle()I
      intermediary method_62883 Lnet/minecraft/class_10141;method_62883()I
      official b Lfmi;b()I
    • getDebugLabel

      public String getDebugLabel()
      Mappings:
      Namespace Name Mixin selector
      named getDebugLabel Lnet/minecraft/client/gl/CompiledShader;getDebugLabel()Ljava/lang/String;
      intermediary method_68423 Lnet/minecraft/class_10141;method_68423()Ljava/lang/String;
      official c Lfmi;c()Ljava/lang/String;