Package net.minecraft.client.gl
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 Summary
Fields Modifier and Type Field Description private static JsonGlProgram
activeProgram
private static int
activeProgramRef
private List<Integer>
attribLocs
private List<String>
attribNames
private GlBlendState
blendState
private static Uniform
dummyUniform
private GlShader
fragmentShader
private static Logger
LOGGER
private String
name
private int
programRef
private Map<String,IntSupplier>
samplerBinds
private List<String>
samplerNames
private List<Integer>
samplerShaderLocs
private Map<String,GlUniform>
uniformByName
private List<GlUniform>
uniformData
private List<Integer>
uniformLocs
private boolean
uniformStateDirty
private GlShader
vertexShader
-
Constructor Summary
Constructors Constructor Description JsonGlProgram(ResourceManager resource, String name)
-
Method Summary
Modifier and Type Method Description private void
addSampler(JsonElement jsonElement)
private void
addUniform(JsonElement jsonElement)
void
bindSampler(String samplerName, IntSupplier intSupplier)
void
close()
static GlBlendState
deserializeBlendState(JsonObject json)
void
disable()
void
enable()
private void
finalizeUniformsAndSamplers()
GlShader
getFragmentShader()
int
getProgramRef()
static GlShader
getShader(ResourceManager resourceManager, GlShader.Type type, String name)
GlUniform
getUniformByName(String name)
Uniform
getUniformByNameOrDummy(String name)
GlShader
getVertexShader()
void
markUniformsDirty()
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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 interfaceAutoCloseable
- 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 interfaceGlProgram
- 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
- 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
- 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
- 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
- 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
- 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
- Specified by:
getVertexShader
in interfaceGlProgram
- 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
- Specified by:
getFragmentShader
in interfaceGlProgram
- 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 interfaceGlProgram
- 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
-