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 official fjn
intermediary net/minecraft/class_280
named net/minecraft/client/gl/JsonEffectShaderProgram
-
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
(ResourceManager resourceManager, ShaderStage.Type type, String name) void
-
Field Details
-
PROGRAM_DIRECTORY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lfjn;a:Ljava/lang/String;
intermediary field_32682
Lnet/minecraft/class_280;field_32682:Ljava/lang/String;
named PROGRAM_DIRECTORY
Lnet/minecraft/client/gl/JsonEffectShaderProgram;PROGRAM_DIRECTORY:Ljava/lang/String;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lfjn;b:Lorg/slf4j/Logger;
intermediary field_1514
Lnet/minecraft/class_280;field_1514:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/client/gl/JsonEffectShaderProgram;LOGGER:Lorg/slf4j/Logger;
-
DEFAULT_UNIFORM
- Mappings:
Namespace Name Mixin selector official c
Lfjn;c:Lehs;
intermediary field_1520
Lnet/minecraft/class_280;field_1520:Lnet/minecraft/class_278;
named DEFAULT_UNIFORM
Lnet/minecraft/client/gl/JsonEffectShaderProgram;DEFAULT_UNIFORM:Lnet/minecraft/client/gl/Uniform;
-
field_32683
private static final boolean field_32683- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lfjn;d:Z
intermediary field_32683
Lnet/minecraft/class_280;field_32683:Z
named field_32683
Lnet/minecraft/client/gl/JsonEffectShaderProgram;field_32683:Z
-
activeProgram
- Mappings:
Namespace Name Mixin selector official e
Lfjn;e:Lfjn;
intermediary field_1512
Lnet/minecraft/class_280;field_1512:Lnet/minecraft/class_280;
named activeProgram
Lnet/minecraft/client/gl/JsonEffectShaderProgram;activeProgram:Lnet/minecraft/client/gl/JsonEffectShaderProgram;
-
activeProgramGlRef
private static int activeProgramGlRef- Mappings:
Namespace Name Mixin selector official f
Lfjn;f:I
intermediary field_1505
Lnet/minecraft/class_280;field_1505:I
named activeProgramGlRef
Lnet/minecraft/client/gl/JsonEffectShaderProgram;activeProgramGlRef:I
-
samplerBinds
- Mappings:
Namespace Name Mixin selector official g
Lfjn;g:Ljava/util/Map;
intermediary field_1516
Lnet/minecraft/class_280;field_1516:Ljava/util/Map;
named samplerBinds
Lnet/minecraft/client/gl/JsonEffectShaderProgram;samplerBinds:Ljava/util/Map;
-
samplerNames
- Mappings:
Namespace Name Mixin selector official h
Lfjn;h:Ljava/util/List;
intermediary field_1503
Lnet/minecraft/class_280;field_1503:Ljava/util/List;
named samplerNames
Lnet/minecraft/client/gl/JsonEffectShaderProgram;samplerNames:Ljava/util/List;
-
samplerLocations
- Mappings:
Namespace Name Mixin selector official i
Lfjn;i:Ljava/util/List;
intermediary field_1506
Lnet/minecraft/class_280;field_1506:Ljava/util/List;
named samplerLocations
Lnet/minecraft/client/gl/JsonEffectShaderProgram;samplerLocations:Ljava/util/List;
-
uniformData
- Mappings:
Namespace Name Mixin selector official j
Lfjn;j:Ljava/util/List;
intermediary field_1515
Lnet/minecraft/class_280;field_1515:Ljava/util/List;
named uniformData
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformData:Ljava/util/List;
-
uniformLocations
- Mappings:
Namespace Name Mixin selector official k
Lfjn;k:Ljava/util/List;
intermediary field_1507
Lnet/minecraft/class_280;field_1507:Ljava/util/List;
named uniformLocations
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformLocations:Ljava/util/List;
-
uniformByName
- Mappings:
Namespace Name Mixin selector official l
Lfjn;l:Ljava/util/Map;
intermediary field_1510
Lnet/minecraft/class_280;field_1510:Ljava/util/Map;
named uniformByName
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformByName:Ljava/util/Map;
-
glRef
private final int glRef- Mappings:
Namespace Name Mixin selector official m
Lfjn;m:I
intermediary field_1521
Lnet/minecraft/class_280;field_1521:I
named glRef
Lnet/minecraft/client/gl/JsonEffectShaderProgram;glRef:I
-
name
- Mappings:
Namespace Name Mixin selector official n
Lfjn;n:Ljava/lang/String;
intermediary field_1509
Lnet/minecraft/class_280;field_1509:Ljava/lang/String;
named name
Lnet/minecraft/client/gl/JsonEffectShaderProgram;name:Ljava/lang/String;
-
uniformStateDirty
private boolean uniformStateDirty- Mappings:
Namespace Name Mixin selector official o
Lfjn;o:Z
intermediary field_1511
Lnet/minecraft/class_280;field_1511:Z
named uniformStateDirty
Lnet/minecraft/client/gl/JsonEffectShaderProgram;uniformStateDirty:Z
-
blendState
- Mappings:
Namespace Name Mixin selector official p
Lfjn;p:Leht;
intermediary field_1517
Lnet/minecraft/class_280;field_1517:Lnet/minecraft/class_277;
named blendState
Lnet/minecraft/client/gl/JsonEffectShaderProgram;blendState:Lnet/minecraft/client/gl/GlBlendState;
-
attributeLocations
- Mappings:
Namespace Name Mixin selector official q
Lfjn;q:Ljava/util/List;
intermediary field_1518
Lnet/minecraft/class_280;field_1518:Ljava/util/List;
named attributeLocations
Lnet/minecraft/client/gl/JsonEffectShaderProgram;attributeLocations:Ljava/util/List;
-
attributeNames
- Mappings:
Namespace Name Mixin selector official r
Lfjn;r:Ljava/util/List;
intermediary field_1504
Lnet/minecraft/class_280;field_1504:Ljava/util/List;
named attributeNames
Lnet/minecraft/client/gl/JsonEffectShaderProgram;attributeNames:Ljava/util/List;
-
vertexShader
- Mappings:
Namespace Name Mixin selector official s
Lfjn;s:Lehv;
intermediary field_1508
Lnet/minecraft/class_280;field_1508:Lnet/minecraft/class_5937;
named vertexShader
Lnet/minecraft/client/gl/JsonEffectShaderProgram;vertexShader:Lnet/minecraft/client/gl/EffectShaderStage;
-
fragmentShader
- Mappings:
Namespace Name Mixin selector official t
Lfjn;t:Lehv;
intermediary field_1519
Lnet/minecraft/class_280;field_1519:Lnet/minecraft/class_5937;
named fragmentShader
Lnet/minecraft/client/gl/JsonEffectShaderProgram;fragmentShader:Lnet/minecraft/client/gl/EffectShaderStage;
-
-
Constructor Details
-
JsonEffectShaderProgram
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official <init>
Lfjn;<init>(Lakx;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/JsonEffectShaderProgram;<init>(Lnet/minecraft/resource/ResourceManager;Ljava/lang/String;)V
-
-
Method Details
-
loadEffect
public static EffectShaderStage loadEffect(ResourceManager resourceManager, ShaderStage.Type type, String name) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lfjn;a(Lakx;Lehx$a;Ljava/lang/String;)Lehv;
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_5937;
named loadEffect
Lnet/minecraft/client/gl/JsonEffectShaderProgram;loadEffect(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/gl/ShaderStage$Type;Ljava/lang/String;)Lnet/minecraft/client/gl/EffectShaderStage;
-
deserializeBlendState
- Mappings:
Namespace Name Mixin selector official a
Lfjn;a(Lcom/google/gson/JsonObject;)Leht;
intermediary method_16035
Lnet/minecraft/class_280;method_16035(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_277;
named deserializeBlendState
Lnet/minecraft/client/gl/JsonEffectShaderProgram;deserializeBlendState(Lcom/google/gson/JsonObject;)Lnet/minecraft/client/gl/GlBlendState;
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
disable
public void disable()- Mappings:
Namespace Name Mixin selector official f
Lfjn;f()V
intermediary method_1273
Lnet/minecraft/class_280;method_1273()V
named disable
Lnet/minecraft/client/gl/JsonEffectShaderProgram;disable()V
-
enable
public void enable()- Mappings:
Namespace Name Mixin selector official g
Lfjn;g()V
intermediary method_1277
Lnet/minecraft/class_280;method_1277()V
named enable
Lnet/minecraft/client/gl/JsonEffectShaderProgram;enable()V
-
markUniformsDirty
public void markUniformsDirty()- Specified by:
markUniformsDirty
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector official b
Lehz;b()V
intermediary method_1279
Lnet/minecraft/class_3679;method_1279()V
named markUniformsDirty
Lnet/minecraft/client/gl/ShaderProgramSetupView;markUniformsDirty()V
-
getUniformByName
- Mappings:
Namespace Name Mixin selector official a
Lfjn;a(Ljava/lang/String;)Leia;
intermediary method_1271
Lnet/minecraft/class_280;method_1271(Ljava/lang/String;)Lnet/minecraft/class_284;
named getUniformByName
Lnet/minecraft/client/gl/JsonEffectShaderProgram;getUniformByName(Ljava/lang/String;)Lnet/minecraft/client/gl/GlUniform;
-
getUniformByNameOrDummy
- Mappings:
Namespace Name Mixin selector official b
Lfjn;b(Ljava/lang/String;)Lehs;
intermediary method_1275
Lnet/minecraft/class_280;method_1275(Ljava/lang/String;)Lnet/minecraft/class_278;
named getUniformByNameOrDummy
Lnet/minecraft/client/gl/JsonEffectShaderProgram;getUniformByNameOrDummy(Ljava/lang/String;)Lnet/minecraft/client/gl/Uniform;
-
finalizeUniformsAndSamplers
private void finalizeUniformsAndSamplers()- Mappings:
Namespace Name Mixin selector official i
Lfjn;i()V
intermediary method_1268
Lnet/minecraft/class_280;method_1268()V
named finalizeUniformsAndSamplers
Lnet/minecraft/client/gl/JsonEffectShaderProgram;finalizeUniformsAndSamplers()V
-
addSampler
- Mappings:
Namespace Name Mixin selector official a
Lfjn;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/JsonEffectShaderProgram;addSampler(Lcom/google/gson/JsonElement;)V
-
bindSampler
- Mappings:
Namespace Name Mixin selector official a
Lfjn;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/JsonEffectShaderProgram;bindSampler(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
-
addUniform
- Throws:
InvalidHierarchicalFileException
- Mappings:
Namespace Name Mixin selector official b
Lfjn;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/JsonEffectShaderProgram;addUniform(Lcom/google/gson/JsonElement;)V
-
getVertexShader
- Specified by:
getVertexShader
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector official c
Lehz;c()Lehx;
intermediary method_1274
Lnet/minecraft/class_3679;method_1274()Lnet/minecraft/class_281;
named getVertexShader
Lnet/minecraft/client/gl/ShaderProgramSetupView;getVertexShader()Lnet/minecraft/client/gl/ShaderStage;
-
getFragmentShader
- Specified by:
getFragmentShader
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector official d
Lehz;d()Lehx;
intermediary method_1278
Lnet/minecraft/class_3679;method_1278()Lnet/minecraft/class_281;
named getFragmentShader
Lnet/minecraft/client/gl/ShaderProgramSetupView;getFragmentShader()Lnet/minecraft/client/gl/ShaderStage;
-
attachReferencedShaders
public void attachReferencedShaders()- Specified by:
attachReferencedShaders
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector official e
Lehz;e()V
intermediary method_34418
Lnet/minecraft/class_3679;method_34418()V
named attachReferencedShaders
Lnet/minecraft/client/gl/ShaderProgramSetupView;attachReferencedShaders()V
-
getName
- Mappings:
Namespace Name Mixin selector official h
Lfjn;h()Ljava/lang/String;
intermediary method_35763
Lnet/minecraft/class_280;method_35763()Ljava/lang/String;
named getName
Lnet/minecraft/client/gl/JsonEffectShaderProgram;getName()Ljava/lang/String;
-
getGlRef
public int getGlRef()- Specified by:
getGlRef
in interfaceShaderProgramSetupView
- Mappings:
Namespace Name Mixin selector official a
Lehz;a()I
intermediary method_1270
Lnet/minecraft/class_3679;method_1270()I
named getGlRef
Lnet/minecraft/client/gl/ShaderProgramSetupView;getGlRef()I
-