Class JsonGlProgram

java.lang.Object
net.minecraft.client.gl.JsonGlProgram
All Implemented Interfaces:
AutoCloseable, GlProgram

@Environment(CLIENT)
public class JsonGlProgram
extends Object
implements GlProgram, AutoCloseable
Mappings:
Namespace Name
official ehg
intermediary net/minecraft/class_280
named net/minecraft/client/gl/JsonGlProgram
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lehg;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_1514 Lnet/minecraft/class_280;field_1514:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/client/gl/JsonGlProgram;LOGGER:Lorg/apache/logging/log4j/Logger;
    • dummyUniform

      private static final Uniform dummyUniform
      Mappings:
      Namespace Name Mixin selector
      official b Lehg;b:Ldlg;
      intermediary field_1520 Lnet/minecraft/class_280;field_1520:Lnet/minecraft/class_278;
      named dummyUniform Lnet/minecraft/client/gl/JsonGlProgram;dummyUniform:Lnet/minecraft/client/gl/Uniform;
    • activeProgram

      private static JsonGlProgram activeProgram
      Mappings:
      Namespace Name Mixin selector
      official c Lehg;c:Lehg;
      intermediary field_1512 Lnet/minecraft/class_280;field_1512:Lnet/minecraft/class_280;
      named activeProgram Lnet/minecraft/client/gl/JsonGlProgram;activeProgram:Lnet/minecraft/client/gl/JsonGlProgram;
    • activeProgramRef

      private static int activeProgramRef
      Mappings:
      Namespace Name Mixin selector
      official d Lehg;d:I
      intermediary field_1505 Lnet/minecraft/class_280;field_1505:I
      named activeProgramRef Lnet/minecraft/client/gl/JsonGlProgram;activeProgramRef:I
    • samplerBinds

      private final Map<String,​IntSupplier> samplerBinds
      Mappings:
      Namespace Name Mixin selector
      official e Lehg;e:Ljava/util/Map;
      intermediary field_1516 Lnet/minecraft/class_280;field_1516:Ljava/util/Map;
      named samplerBinds Lnet/minecraft/client/gl/JsonGlProgram;samplerBinds:Ljava/util/Map;
    • samplerNames

      private final List<String> samplerNames
      Mappings:
      Namespace Name Mixin selector
      official f Lehg;f:Ljava/util/List;
      intermediary field_1503 Lnet/minecraft/class_280;field_1503:Ljava/util/List;
      named samplerNames Lnet/minecraft/client/gl/JsonGlProgram;samplerNames:Ljava/util/List;
    • samplerShaderLocs

      private final List<Integer> samplerShaderLocs
      Mappings:
      Namespace Name Mixin selector
      official g Lehg;g:Ljava/util/List;
      intermediary field_1506 Lnet/minecraft/class_280;field_1506:Ljava/util/List;
      named samplerShaderLocs Lnet/minecraft/client/gl/JsonGlProgram;samplerShaderLocs:Ljava/util/List;
    • uniformData

      private final List<GlUniform> uniformData
      Mappings:
      Namespace Name Mixin selector
      official h Lehg;h:Ljava/util/List;
      intermediary field_1515 Lnet/minecraft/class_280;field_1515:Ljava/util/List;
      named uniformData Lnet/minecraft/client/gl/JsonGlProgram;uniformData:Ljava/util/List;
    • uniformLocs

      private final List<Integer> uniformLocs
      Mappings:
      Namespace Name Mixin selector
      official i Lehg;i:Ljava/util/List;
      intermediary field_1507 Lnet/minecraft/class_280;field_1507:Ljava/util/List;
      named uniformLocs Lnet/minecraft/client/gl/JsonGlProgram;uniformLocs:Ljava/util/List;
    • uniformByName

      private final Map<String,​GlUniform> uniformByName
      Mappings:
      Namespace Name Mixin selector
      official j Lehg;j:Ljava/util/Map;
      intermediary field_1510 Lnet/minecraft/class_280;field_1510:Ljava/util/Map;
      named uniformByName Lnet/minecraft/client/gl/JsonGlProgram;uniformByName:Ljava/util/Map;
    • programRef

      private final int programRef
      Mappings:
      Namespace Name Mixin selector
      official k Lehg;k:I
      intermediary field_1521 Lnet/minecraft/class_280;field_1521:I
      named programRef Lnet/minecraft/client/gl/JsonGlProgram;programRef:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official l Lehg;l:Ljava/lang/String;
      intermediary field_1509 Lnet/minecraft/class_280;field_1509:Ljava/lang/String;
      named name Lnet/minecraft/client/gl/JsonGlProgram;name:Ljava/lang/String;
    • uniformStateDirty

      private boolean uniformStateDirty
      Mappings:
      Namespace Name Mixin selector
      official m Lehg;m:Z
      intermediary field_1511 Lnet/minecraft/class_280;field_1511:Z
      named uniformStateDirty Lnet/minecraft/client/gl/JsonGlProgram;uniformStateDirty:Z
    • blendState

      private final GlBlendState blendState
      Mappings:
      Namespace Name Mixin selector
      official n Lehg;n:Ldlh;
      intermediary field_1517 Lnet/minecraft/class_280;field_1517:Lnet/minecraft/class_277;
      named blendState Lnet/minecraft/client/gl/JsonGlProgram;blendState:Lnet/minecraft/client/gl/GlBlendState;
    • attribLocs

      private final List<Integer> attribLocs
      Mappings:
      Namespace Name Mixin selector
      official o Lehg;o:Ljava/util/List;
      intermediary field_1518 Lnet/minecraft/class_280;field_1518:Ljava/util/List;
      named attribLocs Lnet/minecraft/client/gl/JsonGlProgram;attribLocs:Ljava/util/List;
    • attribNames

      private final List<String> attribNames
      Mappings:
      Namespace Name Mixin selector
      official p Lehg;p:Ljava/util/List;
      intermediary field_1504 Lnet/minecraft/class_280;field_1504:Ljava/util/List;
      named attribNames Lnet/minecraft/client/gl/JsonGlProgram;attribNames:Ljava/util/List;
    • vertexShader

      private final GlShader vertexShader
      Mappings:
      Namespace Name Mixin selector
      official q Lehg;q:Ldlj;
      intermediary field_1508 Lnet/minecraft/class_280;field_1508:Lnet/minecraft/class_281;
      named vertexShader Lnet/minecraft/client/gl/JsonGlProgram;vertexShader:Lnet/minecraft/client/gl/GlShader;
    • fragmentShader

      private final GlShader fragmentShader
      Mappings:
      Namespace Name Mixin selector
      official r Lehg;r:Ldlj;
      intermediary field_1519 Lnet/minecraft/class_280;field_1519:Lnet/minecraft/class_281;
      named fragmentShader Lnet/minecraft/client/gl/JsonGlProgram;fragmentShader:Lnet/minecraft/client/gl/GlShader;
  • Constructor Details

    • JsonGlProgram

      public JsonGlProgram​(ResourceManager resource, String name) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official <init> Lehg;<init>(Lacx;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_280;<init>(Lnet/minecraft/class_3300;Ljava/lang/String;)V
      named <init> Lnet/minecraft/client/gl/JsonGlProgram;<init>(Lnet/minecraft/resource/ResourceManager;Ljava/lang/String;)V
  • Method Details

    • getShader

      public static GlShader getShader​(ResourceManager resourceManager, GlShader.Type type, String name) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lehg;a(Lacx;Ldlj$a;Ljava/lang/String;)Ldlj;
      intermediary method_16036 Lnet/minecraft/class_280;method_16036(Lnet/minecraft/class_3300;Lnet/minecraft/class_281$class_282;Ljava/lang/String;)Lnet/minecraft/class_281;
      named getShader Lnet/minecraft/client/gl/JsonGlProgram;getShader(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/gl/GlShader$Type;Ljava/lang/String;)Lnet/minecraft/client/gl/GlShader;
    • deserializeBlendState

      public static GlBlendState deserializeBlendState​(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lehg;a(Lcom/google/gson/JsonObject;)Ldlh;
      intermediary method_16035 Lnet/minecraft/class_280;method_16035(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_277;
      named deserializeBlendState Lnet/minecraft/client/gl/JsonGlProgram;deserializeBlendState(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/gl/GlBlendState;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Mappings:
      Namespace Name Mixin selector
      official close Lehg;close()V
      intermediary close Lnet/minecraft/class_280;close()V
      named close Lnet/minecraft/client/gl/JsonGlProgram;close()V
    • disable

      public void disable()
      Mappings:
      Namespace Name Mixin selector
      official e Lehg;e()V
      intermediary method_1273 Lnet/minecraft/class_280;method_1273()V
      named disable Lnet/minecraft/client/gl/JsonGlProgram;disable()V
    • enable

      public void enable()
      Mappings:
      Namespace Name Mixin selector
      official f Lehg;f()V
      intermediary method_1277 Lnet/minecraft/class_280;method_1277()V
      named enable Lnet/minecraft/client/gl/JsonGlProgram;enable()V
    • markUniformsDirty

      public void markUniformsDirty()
      Specified by:
      markUniformsDirty in interface GlProgram
      Mappings:
      Namespace Name Mixin selector
      official b Ldli;b()V
      intermediary method_1279 Lnet/minecraft/class_3679;method_1279()V
      named markUniformsDirty Lnet/minecraft/client/gl/GlProgram;markUniformsDirty()V
    • getUniformByName

      @Nullable public GlUniform getUniformByName​(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lehg;a(Ljava/lang/String;)Ldll;
      intermediary method_1271 Lnet/minecraft/class_280;method_1271(Ljava/lang/String;)Lnet/minecraft/class_284;
      named getUniformByName Lnet/minecraft/client/gl/JsonGlProgram;getUniformByName(Ljava/lang/String;)Lnet/minecraft/client/gl/GlUniform;
    • getUniformByNameOrDummy

      public Uniform getUniformByNameOrDummy​(String name)
      Mappings:
      Namespace Name Mixin selector
      official b Lehg;b(Ljava/lang/String;)Ldlg;
      intermediary method_1275 Lnet/minecraft/class_280;method_1275(Ljava/lang/String;)Lnet/minecraft/class_278;
      named getUniformByNameOrDummy Lnet/minecraft/client/gl/JsonGlProgram;getUniformByNameOrDummy(Ljava/lang/String;)Lnet/minecraft/client/gl/Uniform;
    • finalizeUniformsAndSamplers

      private void finalizeUniformsAndSamplers()
      Mappings:
      Namespace Name Mixin selector
      official h Lehg;h()V
      intermediary method_1268 Lnet/minecraft/class_280;method_1268()V
      named finalizeUniformsAndSamplers Lnet/minecraft/client/gl/JsonGlProgram;finalizeUniformsAndSamplers()V
    • addSampler

      private void addSampler​(JsonElement jsonElement)
      Mappings:
      Namespace Name Mixin selector
      official a Lehg;a(Lcom/google/gson/JsonElement;)V
      intermediary method_1276 Lnet/minecraft/class_280;method_1276(Lcom/google/gson/JsonElement;)V
      named addSampler Lnet/minecraft/client/gl/JsonGlProgram;addSampler(Lcom/google/gson/JsonElement;)V
    • bindSampler

      public void bindSampler​(String samplerName, IntSupplier intSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lehg;a(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
      intermediary method_1269 Lnet/minecraft/class_280;method_1269(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
      named bindSampler Lnet/minecraft/client/gl/JsonGlProgram;bindSampler(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
    • addUniform

      private void addUniform​(JsonElement jsonElement) throws ShaderParseException
      Throws:
      ShaderParseException
      Mappings:
      Namespace Name Mixin selector
      official b Lehg;b(Lcom/google/gson/JsonElement;)V
      intermediary method_1272 Lnet/minecraft/class_280;method_1272(Lcom/google/gson/JsonElement;)V
      named addUniform Lnet/minecraft/client/gl/JsonGlProgram;addUniform(Lcom/google/gson/JsonElement;)V
    • getVertexShader

      public GlShader getVertexShader()
      Specified by:
      getVertexShader in interface GlProgram
      Mappings:
      Namespace Name Mixin selector
      official c Ldli;c()Ldlj;
      intermediary method_1274 Lnet/minecraft/class_3679;method_1274()Lnet/minecraft/class_281;
      named getVertexShader Lnet/minecraft/client/gl/GlProgram;getVertexShader()Lnet/minecraft/client/gl/GlShader;
    • getFragmentShader

      public GlShader getFragmentShader()
      Specified by:
      getFragmentShader in interface GlProgram
      Mappings:
      Namespace Name Mixin selector
      official d Ldli;d()Ldlj;
      intermediary method_1278 Lnet/minecraft/class_3679;method_1278()Lnet/minecraft/class_281;
      named getFragmentShader Lnet/minecraft/client/gl/GlProgram;getFragmentShader()Lnet/minecraft/client/gl/GlShader;
    • getProgramRef

      public int getProgramRef()
      Specified by:
      getProgramRef in interface GlProgram
      Mappings:
      Namespace Name Mixin selector
      official a Ldli;a()I
      intermediary method_1270 Lnet/minecraft/class_3679;method_1270()I
      named getProgramRef Lnet/minecraft/client/gl/GlProgram;getProgramRef()I