Class GlUniform

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

@Environment(CLIENT)
public class GlUniform
extends Uniform
implements AutoCloseable
Mappings:
Namespace Name
official dll
intermediary net/minecraft/class_284
named net/minecraft/client/gl/GlUniform
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Ldll;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_1548 Lnet/minecraft/class_284;field_1548:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/gl/GlUniform;LOGGER:Lorg/apache/logging/log4j/Logger;
    • loc

      private int loc
      Mappings:
      Namespace Name Mixin selector
      official b Ldll;b:I
      intermediary field_1545 Lnet/minecraft/class_284;field_1545:I
      named loc Lnet/minecraft/client/gl/GlUniform;loc:I
    • count

      private final int count
      Mappings:
      Namespace Name Mixin selector
      official c Ldll;c:I
      intermediary field_1544 Lnet/minecraft/class_284;field_1544:I
      named count Lnet/minecraft/client/gl/GlUniform;count:I
    • dataType

      private final int dataType
      Mappings:
      Namespace Name Mixin selector
      official d Ldll;d:I
      intermediary field_1543 Lnet/minecraft/class_284;field_1543:I
      named dataType Lnet/minecraft/client/gl/GlUniform;dataType:I
    • intData

      private final IntBuffer intData
      Mappings:
      Namespace Name Mixin selector
      official e Ldll;e:Ljava/nio/IntBuffer;
      intermediary field_1547 Lnet/minecraft/class_284;field_1547:Ljava/nio/IntBuffer;
      named intData Lnet/minecraft/client/gl/GlUniform;intData:Ljava/nio/IntBuffer;
    • floatData

      private final FloatBuffer floatData
      Mappings:
      Namespace Name Mixin selector
      official f Ldll;f:Ljava/nio/FloatBuffer;
      intermediary field_1549 Lnet/minecraft/class_284;field_1549:Ljava/nio/FloatBuffer;
      named floatData Lnet/minecraft/client/gl/GlUniform;floatData:Ljava/nio/FloatBuffer;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official g Ldll;g:Ljava/lang/String;
      intermediary field_1546 Lnet/minecraft/class_284;field_1546:Ljava/lang/String;
      named name Lnet/minecraft/client/gl/GlUniform;name:Ljava/lang/String;
    • stateDirty

      private boolean stateDirty
      Mappings:
      Namespace Name Mixin selector
      official h Ldll;h:Z
      intermediary field_1542 Lnet/minecraft/class_284;field_1542:Z
      named stateDirty Lnet/minecraft/client/gl/GlUniform;stateDirty:Z
    • program

      private final GlProgram program
      Mappings:
      Namespace Name Mixin selector
      official i Ldll;i:Ldli;
      intermediary field_1541 Lnet/minecraft/class_284;field_1541:Lnet/minecraft/class_3679;
      named program Lnet/minecraft/client/gl/GlUniform;program:Lnet/minecraft/client/gl/GlProgram;
  • Constructor Details

    • GlUniform

      public GlUniform​(String name, int dataType, int count, GlProgram program)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldll;<init>(Ljava/lang/String;IILdli;)V
      intermediary <init> Lnet/minecraft/class_284;<init>(Ljava/lang/String;IILnet/minecraft/class_3679;)V
      named <init> Lnet/minecraft/client/gl/GlUniform;<init>(Ljava/lang/String;IILnet/minecraft/client/gl/GlProgram;)V
  • Method Details

    • getUniformLocation

      public static int getUniformLocation​(int program, CharSequence name)
      Mappings:
      Namespace Name Mixin selector
      official a Ldll;a(ILjava/lang/CharSequence;)I
      intermediary method_22096 Lnet/minecraft/class_284;method_22096(ILjava/lang/CharSequence;)I
      named getUniformLocation Lnet/minecraft/client/gl/GlUniform;getUniformLocation(ILjava/lang/CharSequence;)I
    • uniform1

      public static void uniform1​(int location, int value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldll;a(II)V
      intermediary method_22095 Lnet/minecraft/class_284;method_22095(II)V
      named uniform1 Lnet/minecraft/client/gl/GlUniform;uniform1(II)V
    • getAttribLocation

      public static int getAttribLocation​(int program, CharSequence name)
      Mappings:
      Namespace Name Mixin selector
      official b Ldll;b(ILjava/lang/CharSequence;)I
      intermediary method_22097 Lnet/minecraft/class_284;method_22097(ILjava/lang/CharSequence;)I
      named getAttribLocation Lnet/minecraft/client/gl/GlUniform;getAttribLocation(ILjava/lang/CharSequence;)I
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Mappings:
      Namespace Name Mixin selector
      official close Ldll;close()V
      intermediary close Lnet/minecraft/class_284;close()V
      named close Lnet/minecraft/client/gl/GlUniform;close()V
    • markStateDirty

      private void markStateDirty()
      Mappings:
      Namespace Name Mixin selector
      official c Ldll;c()V
      intermediary method_1302 Lnet/minecraft/class_284;method_1302()V
      named markStateDirty Lnet/minecraft/client/gl/GlUniform;markStateDirty()V
    • getTypeIndex

      public static int getTypeIndex​(String typeName)
      Mappings:
      Namespace Name Mixin selector
      official a Ldll;a(Ljava/lang/String;)I
      intermediary method_1299 Lnet/minecraft/class_284;method_1299(Ljava/lang/String;)I
      named getTypeIndex Lnet/minecraft/client/gl/GlUniform;getTypeIndex(Ljava/lang/String;)I
    • setLoc

      public void setLoc​(int loc)
      Mappings:
      Namespace Name Mixin selector
      official a Ldll;a(I)V
      intermediary method_1297 Lnet/minecraft/class_284;method_1297(I)V
      named setLoc Lnet/minecraft/client/gl/GlUniform;setLoc(I)V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Ldll;a()Ljava/lang/String;
      intermediary method_1298 Lnet/minecraft/class_284;method_1298()Ljava/lang/String;
      named getName Lnet/minecraft/client/gl/GlUniform;getName()Ljava/lang/String;
    • set

      public void set​(float value1)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(F)V
      intermediary method_1251 Lnet/minecraft/class_278;method_1251(F)V
      named set Lnet/minecraft/client/gl/Uniform;set(F)V
    • set

      public void set​(float value1, float value2)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(FF)V
      intermediary method_1255 Lnet/minecraft/class_278;method_1255(FF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FF)V
    • set

      public void set​(float value1, float value2, float value3)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(FFF)V
      intermediary method_1249 Lnet/minecraft/class_278;method_1249(FFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFF)V
    • set

      public void set​(float value1, float value2, float value3, float value4)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(FFFF)V
      intermediary method_1254 Lnet/minecraft/class_278;method_1254(FFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFF)V
    • setForDataType

      public void setForDataType​(float value1, float value2, float value3, float value4)
      Overrides:
      setForDataType in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official b Ldlg;b(FFFF)V
      intermediary method_1252 Lnet/minecraft/class_278;method_1252(FFFF)V
      named setForDataType Lnet/minecraft/client/gl/Uniform;setForDataType(FFFF)V
    • set

      public void set​(int value1, int value2, int value3, int value4)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(IIII)V
      intermediary method_1248 Lnet/minecraft/class_278;method_1248(IIII)V
      named set Lnet/minecraft/client/gl/Uniform;set(IIII)V
    • set

      public void set​(float[] values)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a([F)V
      intermediary method_1253 Lnet/minecraft/class_278;method_1253([F)V
      named set Lnet/minecraft/client/gl/Uniform;set([F)V
    • set

      public void set​(Matrix4f values)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Ldlg;a(Lb;)V
      intermediary method_1250 Lnet/minecraft/class_278;method_1250(Lnet/minecraft/class_1159;)V
      named set Lnet/minecraft/client/gl/Uniform;set(Lnet/minecraft/util/math/Matrix4f;)V
    • upload

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      official b Ldll;b()V
      intermediary method_1300 Lnet/minecraft/class_284;method_1300()V
      named upload Lnet/minecraft/client/gl/GlUniform;upload()V
    • uploadInts

      private void uploadInts()
      Mappings:
      Namespace Name Mixin selector
      official d Ldll;d()V
      intermediary method_1303 Lnet/minecraft/class_284;method_1303()V
      named uploadInts Lnet/minecraft/client/gl/GlUniform;uploadInts()V
    • uploadFloats

      private void uploadFloats()
      Mappings:
      Namespace Name Mixin selector
      official e Ldll;e()V
      intermediary method_1301 Lnet/minecraft/class_284;method_1301()V
      named uploadFloats Lnet/minecraft/client/gl/GlUniform;uploadFloats()V
    • uploadMatrix

      private void uploadMatrix()
      Mappings:
      Namespace Name Mixin selector
      official f Ldll;f()V
      intermediary method_1296 Lnet/minecraft/class_284;method_1296()V
      named uploadMatrix Lnet/minecraft/client/gl/GlUniform;uploadMatrix()V