Class Program

java.lang.Object
net.minecraft.client.gl.Program
Direct Known Subclasses:
EffectProgram

@Environment(CLIENT) public class Program extends Object
Mappings:
Namespace Name
official dzg
intermediary net/minecraft/class_281
named net/minecraft/client/gl/Program
  • Field Details

    • MAX_SHADER_INFO_LOG_LENGTH

      private static final int MAX_SHADER_INFO_LOG_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldzg;a:I
      intermediary field_32037 Lnet/minecraft/class_281;field_32037:I
      named MAX_SHADER_INFO_LOG_LENGTH Lnet/minecraft/client/gl/Program;MAX_SHADER_INFO_LOG_LENGTH:I
    • shaderType

      private final Program.Type shaderType
      Mappings:
      Namespace Name Mixin selector
      official b Ldzg;b:Ldzg$a;
      intermediary field_1524 Lnet/minecraft/class_281;field_1524:Lnet/minecraft/class_281$class_282;
      named shaderType Lnet/minecraft/client/gl/Program;shaderType:Lnet/minecraft/client/gl/Program$Type;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official c Ldzg;c:Ljava/lang/String;
      intermediary field_1525 Lnet/minecraft/class_281;field_1525:Ljava/lang/String;
      named name Lnet/minecraft/client/gl/Program;name:Ljava/lang/String;
    • shaderRef

      private int shaderRef
      Mappings:
      Namespace Name Mixin selector
      official d Ldzg;d:I
      intermediary field_1523 Lnet/minecraft/class_281;field_1523:I
      named shaderRef Lnet/minecraft/client/gl/Program;shaderRef:I
  • Constructor Details

    • Program

      protected Program(Program.Type shaderType, int shaderRef, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldzg;<init>(Ldzg$a;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_281;<init>(Lnet/minecraft/class_281$class_282;ILjava/lang/String;)V
      named <init> Lnet/minecraft/client/gl/Program;<init>(Lnet/minecraft/client/gl/Program$Type;ILjava/lang/String;)V
  • Method Details

    • attachTo

      public void attachTo(GlShader program)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzg;a(Ldzi;)V
      intermediary method_1281 Lnet/minecraft/class_281;method_1281(Lnet/minecraft/class_3679;)V
      named attachTo Lnet/minecraft/client/gl/Program;attachTo(Lnet/minecraft/client/gl/GlShader;)V
    • release

      public void release()
      Mappings:
      Namespace Name Mixin selector
      official a Ldzg;a()V
      intermediary method_1282 Lnet/minecraft/class_281;method_1282()V
      named release Lnet/minecraft/client/gl/Program;release()V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Ldzg;b()Ljava/lang/String;
      intermediary method_1280 Lnet/minecraft/class_281;method_1280()Ljava/lang/String;
      named getName Lnet/minecraft/client/gl/Program;getName()Ljava/lang/String;
    • createFromResource

      public static Program createFromResource(Program.Type type, String name, InputStream stream, String domain, GLImportProcessor loader) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldzg;a(Ldzg$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Ldyz;)Ldzg;
      intermediary method_1283 Lnet/minecraft/class_281;method_1283(Lnet/minecraft/class_281$class_282;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/class_5913;)Lnet/minecraft/class_281;
      named createFromResource Lnet/minecraft/client/gl/Program;createFromResource(Lnet/minecraft/client/gl/Program$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/client/gl/GLImportProcessor;)Lnet/minecraft/client/gl/Program;
    • loadProgram

      protected static int loadProgram(Program.Type type, String name, InputStream stream, String domain, GLImportProcessor loader) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Ldzg;b(Ldzg$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Ldyz;)I
      intermediary method_34416 Lnet/minecraft/class_281;method_34416(Lnet/minecraft/class_281$class_282;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/class_5913;)I
      named loadProgram Lnet/minecraft/client/gl/Program;loadProgram(Lnet/minecraft/client/gl/Program$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/client/gl/GLImportProcessor;)I
    • getShaderRef

      protected int getShaderRef()
      Mappings:
      Namespace Name Mixin selector
      official c Ldzg;c()I
      intermediary method_34417 Lnet/minecraft/class_281;method_34417()I
      named getShaderRef Lnet/minecraft/client/gl/Program;getShaderRef()I