Class JsonEffectGlShader

java.lang.Object
net.minecraft.client.gl.JsonEffectGlShader
All Implemented Interfaces:
AutoCloseable, EffectGlShader, GlShader

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

    • field_32682

      private static final String field_32682
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lemx;a:Ljava/lang/String;
      intermediary field_32682 Lnet/minecraft/class_280;field_32682:Ljava/lang/String;
      named field_32682 Lnet/minecraft/client/gl/JsonEffectGlShader;field_32682:Ljava/lang/String;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lemx;b: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/JsonEffectGlShader;LOGGER:Lorg/apache/logging/log4j/Logger;
    • DEFAULT_UNIFORM

      private static final Uniform DEFAULT_UNIFORM
      Mappings:
      Namespace Name Mixin selector
      official c Lemx;c:Ldpv;
      intermediary field_1520 Lnet/minecraft/class_280;field_1520:Lnet/minecraft/class_278;
      named DEFAULT_UNIFORM Lnet/minecraft/client/gl/JsonEffectGlShader;DEFAULT_UNIFORM:Lnet/minecraft/client/gl/Uniform;
    • field_32683

      private static final boolean field_32683
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Lemx;d:Z
      intermediary field_32683 Lnet/minecraft/class_280;field_32683:Z
      named field_32683 Lnet/minecraft/client/gl/JsonEffectGlShader;field_32683:Z
    • activeShader

      private static JsonEffectGlShader activeShader
      Mappings:
      Namespace Name Mixin selector
      official e Lemx;e:Lemx;
      intermediary field_1512 Lnet/minecraft/class_280;field_1512:Lnet/minecraft/class_280;
      named activeShader Lnet/minecraft/client/gl/JsonEffectGlShader;activeShader:Lnet/minecraft/client/gl/JsonEffectGlShader;
    • activeProgramRef

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

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

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

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

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

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

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

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

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

      private boolean uniformStateDirty
      Mappings:
      Namespace Name Mixin selector
      official o Lemx;o:Z
      intermediary field_1511 Lnet/minecraft/class_280;field_1511:Z
      named uniformStateDirty Lnet/minecraft/client/gl/JsonEffectGlShader;uniformStateDirty:Z
    • blendState

      private final GlBlendState blendState
      Mappings:
      Namespace Name Mixin selector
      official p Lemx;p:Ldpw;
      intermediary field_1517 Lnet/minecraft/class_280;field_1517:Lnet/minecraft/class_277;
      named blendState Lnet/minecraft/client/gl/JsonEffectGlShader;blendState:Lnet/minecraft/client/gl/GlBlendState;
    • attribLocs

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

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

      private final EffectProgram vertexShader
      Mappings:
      Namespace Name Mixin selector
      official s Lemx;s:Ldpy;
      intermediary field_1508 Lnet/minecraft/class_280;field_1508:Lnet/minecraft/class_5937;
      named vertexShader Lnet/minecraft/client/gl/JsonEffectGlShader;vertexShader:Lnet/minecraft/client/gl/EffectProgram;
    • fragmentShader

      private final EffectProgram fragmentShader
      Mappings:
      Namespace Name Mixin selector
      official t Lemx;t:Ldpy;
      intermediary field_1519 Lnet/minecraft/class_280;field_1519:Lnet/minecraft/class_5937;
      named fragmentShader Lnet/minecraft/client/gl/JsonEffectGlShader;fragmentShader:Lnet/minecraft/client/gl/EffectProgram;
  • Constructor Details

    • JsonEffectGlShader

      public JsonEffectGlShader(ResourceManager resource, String name) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official <init> Lemx;<init>(Ladt;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/JsonEffectGlShader;<init>(Lnet/minecraft/resource/ResourceManager;Ljava/lang/String;)V
  • Method Details

    • loadEffect

      public static EffectProgram loadEffect(ResourceManager resourceManager, Program.Type type, String name) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lemx;a(Ladt;Ldpz$a;Ljava/lang/String;)Ldpy;
      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/JsonEffectGlShader;loadEffect(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/gl/Program$Type;Ljava/lang/String;)Lnet/minecraft/client/gl/EffectProgram;
    • deserializeBlendState

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

      public void close()
      Specified by:
      close in interface AutoCloseable
    • disable

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

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

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

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

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

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

      private void addSampler(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lemx;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/JsonEffectGlShader;addSampler(Lcom/google/gson/JsonElement;)V
    • bindSampler

      public void bindSampler(String samplerName, IntSupplier intSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Lemx;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/JsonEffectGlShader;bindSampler(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
    • addUniform

      private void addUniform(JsonElement json) throws ShaderParseException
      Throws:
      ShaderParseException
      Mappings:
      Namespace Name Mixin selector
      official b Lemx;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/JsonEffectGlShader;addUniform(Lcom/google/gson/JsonElement;)V
    • getVertexShader

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

      public Program getFragmentShader()
      Specified by:
      getFragmentShader in interface GlShader
      Mappings:
      Namespace Name Mixin selector
      official d Ldqb;d()Ldpz;
      intermediary method_1278 Lnet/minecraft/class_3679;method_1278()Lnet/minecraft/class_281;
      named getFragmentShader Lnet/minecraft/client/gl/GlShader;getFragmentShader()Lnet/minecraft/client/gl/Program;
    • attachReferencedShaders

      public void attachReferencedShaders()
      Specified by:
      attachReferencedShaders in interface GlShader
      Mappings:
      Namespace Name Mixin selector
      official e Ldqb;e()V
      intermediary method_34418 Lnet/minecraft/class_3679;method_34418()V
      named attachReferencedShaders Lnet/minecraft/client/gl/GlShader;attachReferencedShaders()V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official h Lemx;h()Ljava/lang/String;
      intermediary method_35763 Lnet/minecraft/class_280;method_35763()Ljava/lang/String;
      named getName Lnet/minecraft/client/gl/JsonEffectGlShader;getName()Ljava/lang/String;
    • getProgramRef

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