Class GlShader

java.lang.Object
net.minecraft.client.gl.GlShader

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

    • shaderType

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

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

      private final int shaderRef
      Mappings:
      Namespace Name Mixin selector
      official c Ldlj;c:I
      intermediary field_1523 Lnet/minecraft/class_281;field_1523:I
      named shaderRef Lnet/minecraft/client/gl/GlShader;shaderRef:I
    • refCount

      private int refCount
      Mappings:
      Namespace Name Mixin selector
      official d Ldlj;d:I
      intermediary field_1522 Lnet/minecraft/class_281;field_1522:I
      named refCount Lnet/minecraft/client/gl/GlShader;refCount:I
  • Constructor Details

    • GlShader

      private GlShader​(GlShader.Type shaderType, int shaderRef, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlj;<init>(Ldlj$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/GlShader;<init>(Lnet/minecraft/client/gl/GlShader$Type;ILjava/lang/String;)V
  • Method Details

    • attachTo

      public void attachTo​(GlProgram glProgram)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlj;a(Ldli;)V
      intermediary method_1281 Lnet/minecraft/class_281;method_1281(Lnet/minecraft/class_3679;)V
      named attachTo Lnet/minecraft/client/gl/GlShader;attachTo(Lnet/minecraft/client/gl/GlProgram;)V
    • release

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

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

      public static GlShader createFromResource​(GlShader.Type type, String name, InputStream sourceCode, String string) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldlj;a(Ldlj$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Ldlj;
      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_281;
      named createFromResource Lnet/minecraft/client/gl/GlShader;createFromResource(Lnet/minecraft/client/gl/GlShader$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lnet/minecraft/client/gl/GlShader;