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 gdv
-
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
Lgdv;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
Lgdv;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
Lgdv;c:Lezx;
-
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
Lgdv;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
Lgdv;e:Lgdv;
-
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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;p:Lezy;
-
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
Lgdv;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
Lgdv;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
Lgdv;s:Lfaa;
-
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
Lgdv;t:Lfaa;
-
-
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>
Lgdv;<init>(Latz;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
Lgdv;a(Latz;Lfac$a;Ljava/lang/String;)Lfaa;
-
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
Lgdv;a(Lcom/google/gson/JsonObject;)Lezy;
-
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
Lgdv;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
Lgdv;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
Lfae;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
Lgdv;a(Ljava/lang/String;)Lfaf;
-
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
Lgdv;b(Ljava/lang/String;)Lezx;
-
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
Lgdv;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
Lgdv;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
Lgdv;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
Lgdv;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
Lfae;c()Lfac;
-
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
Lfae;d()Lfac;
-
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
Lfae;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
Lgdv;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
Lfae;a()I
-