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
Represents a uniform variable.
See Also:
Mappings:
Namespace Name
official eia
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 l Leia;l:Lorg/slf4j/Logger;
      intermediary field_1548 Lnet/minecraft/class_284;field_1548:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/gl/GlUniform;LOGGER:Lorg/slf4j/Logger;
    • field_32038

      public static final int field_32038
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leia;a:I
      intermediary field_32038 Lnet/minecraft/class_284;field_32038:I
      named field_32038 Lnet/minecraft/client/gl/GlUniform;field_32038:I
    • field_32039

      public static final int field_32039
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leia;b:I
      intermediary field_32039 Lnet/minecraft/class_284;field_32039:I
      named field_32039 Lnet/minecraft/client/gl/GlUniform;field_32039:I
    • field_32040

      public static final int field_32040
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leia;c:I
      intermediary field_32040 Lnet/minecraft/class_284;field_32040:I
      named field_32040 Lnet/minecraft/client/gl/GlUniform;field_32040:I
    • field_32041

      public static final int field_32041
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Leia;d:I
      intermediary field_32041 Lnet/minecraft/class_284;field_32041:I
      named field_32041 Lnet/minecraft/client/gl/GlUniform;field_32041:I
    • field_32042

      public static final int field_32042
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Leia;e:I
      intermediary field_32042 Lnet/minecraft/class_284;field_32042:I
      named field_32042 Lnet/minecraft/client/gl/GlUniform;field_32042:I
    • field_32043

      public static final int field_32043
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Leia;f:I
      intermediary field_32043 Lnet/minecraft/class_284;field_32043:I
      named field_32043 Lnet/minecraft/client/gl/GlUniform;field_32043:I
    • field_32044

      public static final int field_32044
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Leia;g:I
      intermediary field_32044 Lnet/minecraft/class_284;field_32044:I
      named field_32044 Lnet/minecraft/client/gl/GlUniform;field_32044:I
    • field_32045

      public static final int field_32045
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Leia;h:I
      intermediary field_32045 Lnet/minecraft/class_284;field_32045:I
      named field_32045 Lnet/minecraft/client/gl/GlUniform;field_32045:I
    • field_32046

      public static final int field_32046
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Leia;i:I
      intermediary field_32046 Lnet/minecraft/class_284;field_32046:I
      named field_32046 Lnet/minecraft/client/gl/GlUniform;field_32046:I
    • field_32047

      public static final int field_32047
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Leia;j:I
      intermediary field_32047 Lnet/minecraft/class_284;field_32047:I
      named field_32047 Lnet/minecraft/client/gl/GlUniform;field_32047:I
    • field_32048

      public static final int field_32048
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Leia;k:I
      intermediary field_32048 Lnet/minecraft/class_284;field_32048:I
      named field_32048 Lnet/minecraft/client/gl/GlUniform;field_32048:I
    • field_32049

      private static final boolean field_32049
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Leia;m:Z
      intermediary field_32049 Lnet/minecraft/class_284;field_32049:Z
      named field_32049 Lnet/minecraft/client/gl/GlUniform;field_32049:Z
    • location

      private int location
      Mappings:
      Namespace Name Mixin selector
      official n Leia;n:I
      intermediary field_1545 Lnet/minecraft/class_284;field_1545:I
      named location Lnet/minecraft/client/gl/GlUniform;location:I
    • count

      private final int count
      Mappings:
      Namespace Name Mixin selector
      official o Leia;o: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 p Leia;p: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 q Leia;q: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 r Leia;r: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 s Leia;s: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 t Leia;t:Z
      intermediary field_1542 Lnet/minecraft/class_284;field_1542:Z
      named stateDirty Lnet/minecraft/client/gl/GlUniform;stateDirty:Z
    • program

      private final ShaderProgramSetupView program
      Mappings:
      Namespace Name Mixin selector
      official u Leia;u:Lehz;
      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/ShaderProgramSetupView;
  • Constructor Details

    • GlUniform

      public GlUniform(String name, int dataType, int count, ShaderProgramSetupView program)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leia;<init>(Ljava/lang/String;IILehz;)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/ShaderProgramSetupView;)V
  • Method Details

    • getUniformLocation

      public static int getUniformLocation(int program, CharSequence name)
      Mappings:
      Namespace Name Mixin selector
      official a Leia;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 b Leia;b(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 Leia;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
    • bindAttribLocation

      public static void bindAttribLocation(int program, int index, CharSequence name)
      Mappings:
      Namespace Name Mixin selector
      official a Leia;a(IILjava/lang/CharSequence;)V
      intermediary method_34419 Lnet/minecraft/class_284;method_34419(IILjava/lang/CharSequence;)V
      named bindAttribLocation Lnet/minecraft/client/gl/GlUniform;bindAttribLocation(IILjava/lang/CharSequence;)V
    • close

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

      private void markStateDirty()
      Mappings:
      Namespace Name Mixin selector
      official h Leia;h()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 Leia;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
    • setLocation

      public void setLocation(int location)
      Mappings:
      Namespace Name Mixin selector
      official b Leia;b(I)V
      intermediary method_1297 Lnet/minecraft/class_284;method_1297(I)V
      named setLocation Lnet/minecraft/client/gl/GlUniform;setLocation(I)V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Leia;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 final void set(float value1)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;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 final void set(float value1, float value2)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;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 final void set(int index, float value)
      Mappings:
      Namespace Name Mixin selector
      official a Leia;a(IF)V
      intermediary method_35659 Lnet/minecraft/class_284;method_35659(IF)V
      named set Lnet/minecraft/client/gl/GlUniform;set(IF)V
    • set

      public final void set(float value1, float value2, float value3)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;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 final void set(Vector3f vector)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lorg/joml/Vector3f;)V
      intermediary method_34413 Lnet/minecraft/class_278;method_34413(Lorg/joml/Vector3f;)V
      named set Lnet/minecraft/client/gl/Uniform;set(Lorg/joml/Vector3f;)V
    • setAndFlip

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

      public final void set(Vector4f vec)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lorg/joml/Vector4f;)V
      intermediary method_35652 Lnet/minecraft/class_278;method_35652(Lorg/joml/Vector4f;)V
      named set Lnet/minecraft/client/gl/Uniform;set(Lorg/joml/Vector4f;)V
    • setForDataType

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

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

      public final void set(int value)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(I)V
      intermediary method_35649 Lnet/minecraft/class_278;method_35649(I)V
      named set Lnet/minecraft/client/gl/Uniform;set(I)V
    • set

      public final void set(int value1, int value2)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(II)V
      intermediary method_35650 Lnet/minecraft/class_278;method_35650(II)V
      named set Lnet/minecraft/client/gl/Uniform;set(II)V
    • set

      public final void set(int value1, int value2, int value3)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(III)V
      intermediary method_35651 Lnet/minecraft/class_278;method_35651(III)V
      named set Lnet/minecraft/client/gl/Uniform;set(III)V
    • set

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

      public final void set(float[] values)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;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 final void set(float value1, float value2, float value3, float value4)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official c Lehs;c(FFFF)V
      intermediary method_35657 Lnet/minecraft/class_278;method_35657(FFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFF)V
    • set

      public final void set(float value1, float value2, float value3, float value4, float value5, float value6)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(FFFFFF)V
      intermediary method_35644 Lnet/minecraft/class_278;method_35644(FFFFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFFFF)V
    • set

      public final void set(float value1, float value2, float value3, float value4, float value5, float value6, float value7, float value8)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(FFFFFFFF)V
      intermediary method_35645 Lnet/minecraft/class_278;method_35645(FFFFFFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFFFFFF)V
    • method_35653

      public final void method_35653(float value1, float value2, float value3, float value4, float value5, float value6)
      Overrides:
      method_35653 in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b(FFFFFF)V
      intermediary method_35653 Lnet/minecraft/class_278;method_35653(FFFFFF)V
      named method_35653 Lnet/minecraft/client/gl/Uniform;method_35653(FFFFFF)V
    • set

      public final void set(float value1, float value2, float value3, float value4, float value5, float value6, float value7, float value8, float value9)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(FFFFFFFFF)V
      intermediary method_35646 Lnet/minecraft/class_278;method_35646(FFFFFFFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFFFFFFF)V
    • set

      public final void set(float value1, float value2, float value3, float value4, float value5, float value6, float value7, float value8, float value9, float value10, float value11, float value12)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(FFFFFFFFFFFF)V
      intermediary method_35647 Lnet/minecraft/class_278;method_35647(FFFFFFFFFFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFFFFFFFFFF)V
    • method_35654

      public final void method_35654(float value1, float value2, float value3, float value4, float value5, float value6, float value7, float value8)
      Overrides:
      method_35654 in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b(FFFFFFFF)V
      intermediary method_35654 Lnet/minecraft/class_278;method_35654(FFFFFFFF)V
      named method_35654 Lnet/minecraft/client/gl/Uniform;method_35654(FFFFFFFF)V
    • method_35655

      public final void method_35655(float value1, float value2, float value3, float value4, float value5, float value6, float value7, float value8, float value9, float value10, float value11, float value12)
      Overrides:
      method_35655 in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official b Lehs;b(FFFFFFFFFFFF)V
      intermediary method_35655 Lnet/minecraft/class_278;method_35655(FFFFFFFFFFFF)V
      named method_35655 Lnet/minecraft/client/gl/Uniform;method_35655(FFFFFFFFFFFF)V
    • set

      public final void set(float value1, float value2, float value3, float value4, float value5, float value6, float value7, float value8, float value9, float value10, float value11, float value12, float value13, float value14, float value15, float value16)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(FFFFFFFFFFFFFFFF)V
      intermediary method_35648 Lnet/minecraft/class_278;method_35648(FFFFFFFFFFFFFFFF)V
      named set Lnet/minecraft/client/gl/Uniform;set(FFFFFFFFFFFFFFFF)V
    • set

      public final void set(Matrix4f values)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lorg/joml/Matrix4f;)V
      intermediary method_1250 Lnet/minecraft/class_278;method_1250(Lorg/joml/Matrix4f;)V
      named set Lnet/minecraft/client/gl/Uniform;set(Lorg/joml/Matrix4f;)V
    • set

      public final void set(Matrix3f values)
      Overrides:
      set in class Uniform
      Mappings:
      Namespace Name Mixin selector
      official a Lehs;a(Lorg/joml/Matrix3f;)V
      intermediary method_39978 Lnet/minecraft/class_278;method_39978(Lorg/joml/Matrix3f;)V
      named set Lnet/minecraft/client/gl/Uniform;set(Lorg/joml/Matrix3f;)V
    • upload

      public void upload()
      Mappings:
      Namespace Name Mixin selector
      official b Leia;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 i Leia;i()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 j Leia;j()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 k Leia;k()V
      intermediary method_1296 Lnet/minecraft/class_284;method_1296()V
      named uploadMatrix Lnet/minecraft/client/gl/GlUniform;uploadMatrix()V
    • getLocation

      public int getLocation()
      Mappings:
      Namespace Name Mixin selector
      official c Leia;c()I
      intermediary method_35660 Lnet/minecraft/class_284;method_35660()I
      named getLocation Lnet/minecraft/client/gl/GlUniform;getLocation()I
    • getCount

      public int getCount()
      Mappings:
      Namespace Name Mixin selector
      official d Leia;d()I
      intermediary method_35661 Lnet/minecraft/class_284;method_35661()I
      named getCount Lnet/minecraft/client/gl/GlUniform;getCount()I
    • getDataType

      public int getDataType()
      Mappings:
      Namespace Name Mixin selector
      official e Leia;e()I
      intermediary method_35662 Lnet/minecraft/class_284;method_35662()I
      named getDataType Lnet/minecraft/client/gl/GlUniform;getDataType()I
    • getIntData

      public IntBuffer getIntData()
      Mappings:
      Namespace Name Mixin selector
      official f Leia;f()Ljava/nio/IntBuffer;
      intermediary method_35663 Lnet/minecraft/class_284;method_35663()Ljava/nio/IntBuffer;
      named getIntData Lnet/minecraft/client/gl/GlUniform;getIntData()Ljava/nio/IntBuffer;
    • getFloatData

      public FloatBuffer getFloatData()
      Mappings:
      Namespace Name Mixin selector
      official g Leia;g()Ljava/nio/FloatBuffer;
      intermediary method_35664 Lnet/minecraft/class_284;method_35664()Ljava/nio/FloatBuffer;
      named getFloatData Lnet/minecraft/client/gl/GlUniform;getFloatData()Ljava/nio/FloatBuffer;