Package net.minecraft.client.gl
Class JsonEffectShaderProgram
java.lang.Object
net.minecraft.client.gl.JsonEffectShaderProgram
- All Implemented Interfaces:
AutoCloseable
,EffectShaderProgram
,ShaderProgramSetupView
@Environment(CLIENT)
public class JsonEffectShaderProgram
extends Object
implements EffectShaderProgram, AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/gl/JsonEffectShaderProgram
intermediary net/minecraft/class_280
official gdf
-
Field Summary
Modifier and TypeFieldDescriptionprivate static JsonEffectShaderProgram
private static int
private final GlBlendState
private static final Uniform
private static final boolean
private final EffectShaderStage
private final int
private static final Logger
private final String
private static final String
private final Map
<String, IntSupplier> private boolean
private final EffectShaderStage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSampler
(JsonElement json) private void
addUniform
(JsonElement json) void
void
bindSampler
(String samplerName, IntSupplier intSupplier) void
close()
static GlBlendState
void
disable()
void
enable()
private void
int
getGlRef()
getName()
getUniformByName
(String name) static EffectShaderStage
loadEffect
(ResourceFactory resourceFactory, ShaderStage.Type type, String name) void
-
Field Details
-
PROGRAM_DIRECTORY
- See Also:
- Mappings:
Namespace Name Mixin selector named PROGRAM_DIRECTORY
Lnet/minecraft/client/gl/JsonEffectShaderProgram;PROGRAM_DIRECTORY:Ljava/lang/String;
intermediary field_32682
Lnet/minecraft/class_280;field_32682:Ljava/lang/String;
official a
Lgdf;a:Ljava/lang/String;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gl/JsonEffectShaderProgram;LOGGER:Lorg/slf4j/Logger;
intermediary field_1514
Lnet/minecraft/class_280;field_1514:Lorg/slf4j/Logger;
official b
Lgdf;b:Lorg/slf4j/Logger;
-
DEFAULT_UNIFORM
- Mappings:
Namespace Name Mixin selector named DEFAULT_UNIFORM
Lnet/minecraft/client/gl/JsonEffectShaderProgram;DEFAULT_UNIFORM:Lnet/minecraft/client/gl/Uniform;
intermediary field_1520
Lnet/minecraft/class_280;field_1520:Lnet/minecraft/class_278;
official c
Lgdf;c:Lezi;
-
field_32683
private static final boolean field_32683- See Also:
- Mappings:
Namespace Name Mixin selector named field_32683
Lnet/minecraft/client/gl/JsonEffectShaderProgram;field_32683:Z
intermediary field_32683
Lnet/minecraft/class_280;field_32683:Z
official d
Lgdf;d:Z
-
activeProgram
- Mappings:
Namespace Name Mixin selector named activeProgram
Lnet/minecraft/client/gl/JsonEffectShaderProgram;activeProgram:Lnet/minecraft/client/gl/JsonEffectShaderProgram;
intermediary field_1512
Lnet/minecraft/class_280;field_1512:Lnet/minecraft/class_280;
official e
Lgdf;e:Lgdf;
-
activeProgramGlRef
private static int activeProgramGlRef- Mappings:
Namespace Name Mixin selector named activeProgramGlRef
Lnet/minecraft/client/gl/JsonEffectShaderProgram;activeProgramGlRef:I
intermediary field_1505
Lnet/minecraft/class_280;field_1505:I
official f
Lgdf;f:I
-
samplerBinds
- Mappings:
Namespace Name Mixin selector named samplerBinds
Lnet/minecraft/client/gl/JsonEffectShaderProgram;samplerBinds:Ljava/util/Map;
intermediary field_1516
Lnet/minecraft/class_280;field_1516:Ljava/util/Map;
official g
Lgdf;g:Ljava/util/Map;
-
samplerNames
- Mappings:
Namespace Name Mixin selector named samplerNames
Lnet/minecraft/client/gl/JsonEffectShaderProgram;samplerNames:Ljava/util/List;
intermediary field_1503
Lnet/minecraft/class_280;field_1503:Ljava/util/List;
official h
Lgdf;h:Ljava/util/List;
-
samplerLocations
- Mappings:
Namespace Name Mixin selector named samplerLocations
Lnet/minecraft/client/gl/JsonEffectShaderProgram;samplerLocations:Ljava/util/List;
intermediary field_1506
Lnet/minecraft/class_280;field_1506:Ljava/util/List;
official i
Lgdf;i:Ljava/util/List;
-
uniformData
- Mappings:
Namespace Name Mixin selector named uniformData
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformData:Ljava/util/List;
intermediary field_1515
Lnet/minecraft/class_280;field_1515:Ljava/util/List;
official j
Lgdf;j:Ljava/util/List;
-
uniformLocations
- Mappings:
Namespace Name Mixin selector named uniformLocations
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformLocations:Ljava/util/List;
intermediary field_1507
Lnet/minecraft/class_280;field_1507:Ljava/util/List;
official k
Lgdf;k:Ljava/util/List;
-
uniformByName
- Mappings:
Namespace Name Mixin selector named uniformByName
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformByName:Ljava/util/Map;
intermediary field_1510
Lnet/minecraft/class_280;field_1510:Ljava/util/Map;
official l
Lgdf;l:Ljava/util/Map;
-
glRef
private final int glRef- Mappings:
Namespace Name Mixin selector named glRef
Lnet/minecraft/client/gl/JsonEffectShaderProgram;glRef:I
intermediary field_1521
Lnet/minecraft/class_280;field_1521:I
official m
Lgdf;m:I
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/client/gl/JsonEffectShaderProgram;name:Ljava/lang/String;
intermediary field_1509
Lnet/minecraft/class_280;field_1509:Ljava/lang/String;
official n
Lgdf;n:Ljava/lang/String;
-
uniformStateDirty
private boolean uniformStateDirty- Mappings:
Namespace Name Mixin selector named uniformStateDirty
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformStateDirty:Z
intermediary field_1511
Lnet/minecraft/class_280;field_1511:Z
official o
Lgdf;o:Z
-
blendState
- Mappings:
Namespace Name Mixin selector named blendState
Lnet/minecraft/client/gl/JsonEffectShaderProgram;blendState:Lnet/minecraft/client/gl/GlBlendState;
intermediary field_1517
Lnet/minecraft/class_280;field_1517:Lnet/minecraft/class_277;
official p
Lgdf;p:Lezj;
-
attributeLocations
- Mappings:
Namespace Name Mixin selector named attributeLocations
Lnet/minecraft/client/gl/JsonEffectShaderProgram;attributeLocations:Ljava/util/List;
intermediary field_1518
Lnet/minecraft/class_280;field_1518:Ljava/util/List;
official q
Lgdf;q:Ljava/util/List;
-
attributeNames
- Mappings:
Namespace Name Mixin selector named attributeNames
Lnet/minecraft/client/gl/JsonEffectShaderProgram;attributeNames:Ljava/util/List;
intermediary field_1504
Lnet/minecraft/class_280;field_1504:Ljava/util/List;
official r
Lgdf;r:Ljava/util/List;
-
vertexShader
- Mappings:
Namespace Name Mixin selector named vertexShader
Lnet/minecraft/client/gl/JsonEffectShaderProgram;vertexShader:Lnet/minecraft/client/gl/EffectShaderStage;
intermediary field_1508
Lnet/minecraft/class_280;field_1508:Lnet/minecraft/class_5937;
official s
Lgdf;s:Lezl;
-
fragmentShader
- Mappings:
Namespace Name Mixin selector named fragmentShader
Lnet/minecraft/client/gl/JsonEffectShaderProgram;fragmentShader:Lnet/minecraft/client/gl/EffectShaderStage;
intermediary field_1519
Lnet/minecraft/class_280;field_1519:Lnet/minecraft/class_5937;
official t
Lgdf;t:Lezl;
-
-
Constructor Details
-
JsonEffectShaderProgram
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gl/JsonEffectShaderProgram;<init>(Lnet/minecraft/resource/ResourceFactory;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_280;<init>(Lnet/minecraft/class_5912;Ljava/lang/String;)V
official <init>
Lgdf;<init>(Laus;Ljava/lang/String;)V
-
-
Method Details
-
loadEffect
public static EffectShaderStage loadEffect(ResourceFactory resourceFactory, ShaderStage.Type type, String name) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named loadEffect
Lnet/minecraft/client/gl/JsonEffectShaderProgram;loadEffect(Lnet/minecraft/resource/ResourceFactory;Lnet/minecraft/client/gl/ShaderStage$Type;Ljava/lang/String;)Lnet/minecraft/client/gl/EffectShaderStage;
intermediary method_16036
Lnet/minecraft/class_280;method_16036(Lnet/minecraft/class_5912;Lnet/minecraft/class_281$class_282;Ljava/lang/String;)Lnet/minecraft/class_5937;
official a
Lgdf;a(Laus;Lezn$a;Ljava/lang/String;)Lezl;
-
deserializeBlendState
- Mappings:
Namespace Name Mixin selector named deserializeBlendState
Lnet/minecraft/client/gl/JsonEffectShaderProgram;deserializeBlendState(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/gl/GlBlendState;
intermediary method_16035
Lnet/minecraft/class_280;method_16035(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_277;
official a
Lgdf;a(Lcom/google/gson/JsonObject;)Lezj;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
disable
public void disable()- Mappings:
Namespace Name Mixin selector named disable
Lnet/minecraft/client/gl/JsonEffectShaderProgram;disable()V
intermediary method_1273
Lnet/minecraft/class_280;method_1273()V
official f
Lgdf;f()V
-
enable
public void enable()- Mappings:
Namespace Name Mixin selector named enable
Lnet/minecraft/client/gl/JsonEffectShaderProgram;enable()V
intermediary method_1277
Lnet/minecraft/class_280;method_1277()V
official g
Lgdf;g()V
-
markUniformsDirty
public void markUniformsDirty()- Specified by:
markUniformsDirty
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector named markUniformsDirty
Lnet/minecraft/client/gl/ShaderProgramSetupView;markUniformsDirty()V
intermediary method_1279
Lnet/minecraft/class_3679;method_1279()V
official b
Lezp;b()V
-
getUniformByName
- Mappings:
Namespace Name Mixin selector named getUniformByName
Lnet/minecraft/client/gl/JsonEffectShaderProgram;getUniformByName(Ljava/lang/String;)Lnet/minecraft/client/gl/GlUniform;
intermediary method_1271
Lnet/minecraft/class_280;method_1271(Ljava/lang/String;)Lnet/minecraft/class_284;
official a
Lgdf;a(Ljava/lang/String;)Lezq;
-
getUniformByNameOrDummy
- Mappings:
Namespace Name Mixin selector named getUniformByNameOrDummy
Lnet/minecraft/client/gl/JsonEffectShaderProgram;getUniformByNameOrDummy(Ljava/lang/String;)Lnet/minecraft/client/gl/Uniform;
intermediary method_1275
Lnet/minecraft/class_280;method_1275(Ljava/lang/String;)Lnet/minecraft/class_278;
official b
Lgdf;b(Ljava/lang/String;)Lezi;
-
finalizeUniformsAndSamplers
private void finalizeUniformsAndSamplers()- Mappings:
Namespace Name Mixin selector named finalizeUniformsAndSamplers
Lnet/minecraft/client/gl/JsonEffectShaderProgram;finalizeUniformsAndSamplers()V
intermediary method_1268
Lnet/minecraft/class_280;method_1268()V
official i
Lgdf;i()V
-
addSampler
- Mappings:
Namespace Name Mixin selector named addSampler
Lnet/minecraft/client/gl/JsonEffectShaderProgram;addSampler(Lcom/google/gson/JsonElement;)V
intermediary method_1276
Lnet/minecraft/class_280;method_1276(Lcom/google/gson/JsonElement;)V
official a
Lgdf;a(Lcom/google/gson/JsonElement;)V
-
bindSampler
- Mappings:
Namespace Name Mixin selector named bindSampler
Lnet/minecraft/client/gl/JsonEffectShaderProgram;bindSampler(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
official a
Lgdf;a(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
-
addUniform
- Throws:
InvalidHierarchicalFileException
- Mappings:
Namespace Name Mixin selector named addUniform
Lnet/minecraft/client/gl/JsonEffectShaderProgram;addUniform(Lcom/google/gson/JsonElement;)V
intermediary method_1272
Lnet/minecraft/class_280;method_1272(Lcom/google/gson/JsonElement;)V
official b
Lgdf;b(Lcom/google/gson/JsonElement;)V
-
getVertexShader
- Specified by:
getVertexShader
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector named getVertexShader
Lnet/minecraft/client/gl/ShaderProgramSetupView;getVertexShader()Lnet/minecraft/client/gl/ShaderStage;
intermediary method_1274
Lnet/minecraft/class_3679;method_1274()Lnet/minecraft/class_281;
official c
Lezp;c()Lezn;
-
getFragmentShader
- Specified by:
getFragmentShader
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector named getFragmentShader
Lnet/minecraft/client/gl/ShaderProgramSetupView;getFragmentShader()Lnet/minecraft/client/gl/ShaderStage;
intermediary method_1278
Lnet/minecraft/class_3679;method_1278()Lnet/minecraft/class_281;
official d
Lezp;d()Lezn;
-
attachReferencedShaders
public void attachReferencedShaders()- Specified by:
attachReferencedShaders
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector named attachReferencedShaders
Lnet/minecraft/client/gl/ShaderProgramSetupView;attachReferencedShaders()V
intermediary method_34418
Lnet/minecraft/class_3679;method_34418()V
official e
Lezp;e()V
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/client/gl/JsonEffectShaderProgram;getName()Ljava/lang/String;
intermediary method_35763
Lnet/minecraft/class_280;method_35763()Ljava/lang/String;
official h
Lgdf;h()Ljava/lang/String;
-
getGlRef
public int getGlRef()- Specified by:
getGlRef
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector named getGlRef
Lnet/minecraft/client/gl/ShaderProgramSetupView;getGlRef()I
intermediary method_1270
Lnet/minecraft/class_3679;method_1270()I
official a
Lezp;a()I
-