Class EffectProgram

java.lang.Object
net.minecraft.client.gl.Program
net.minecraft.client.gl.EffectProgram

@Environment(CLIENT) public class EffectProgram extends Program
A program that can be applied to multiple GLShaders. This program will only be released once an equal number of programs referencing it have been released.
Mappings:
Namespace Name
official drx
intermediary net/minecraft/class_5937
named net/minecraft/client/gl/EffectProgram
  • Field Details

    • LOADER

      private static final GLImportProcessor LOADER
      Mappings:
      Namespace Name Mixin selector
      official a Ldrx;a:Ldrs;
      intermediary field_29329 Lnet/minecraft/class_5937;field_29329:Lnet/minecraft/class_5913;
      named LOADER Lnet/minecraft/client/gl/EffectProgram;LOADER:Lnet/minecraft/client/gl/GLImportProcessor;
    • refCount

      private int refCount
      Mappings:
      Namespace Name Mixin selector
      official b Ldrx;b:I
      intermediary field_29330 Lnet/minecraft/class_5937;field_29330:I
      named refCount Lnet/minecraft/client/gl/EffectProgram;refCount:I
  • Constructor Details

    • EffectProgram

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

    • attachTo

      public void attachTo(EffectGlShader program)
      Mappings:
      Namespace Name Mixin selector
      official a Ldrx;a(Ldrw;)V
      intermediary method_34414 Lnet/minecraft/class_5937;method_34414(Lnet/minecraft/class_5936;)V
      named attachTo Lnet/minecraft/client/gl/EffectProgram;attachTo(Lnet/minecraft/client/gl/EffectGlShader;)V
    • release

      public void release()
      Overrides:
      release in class Program
      Mappings:
      Namespace Name Mixin selector
      official a Ldry;a()V
      intermediary method_1282 Lnet/minecraft/class_281;method_1282()V
      named release Lnet/minecraft/client/gl/Program;release()V
    • createFromResource

      public static EffectProgram createFromResource(Program.Type type, String name, InputStream stream, String domain) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldrx;a(Ldry$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Ldrx;
      intermediary method_34415 Lnet/minecraft/class_5937;method_34415(Lnet/minecraft/class_281$class_282;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lnet/minecraft/class_5937;
      named createFromResource Lnet/minecraft/client/gl/EffectProgram;createFromResource(Lnet/minecraft/client/gl/Program$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lnet/minecraft/client/gl/EffectProgram;