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 ezi
intermediary net/minecraft/class_280
named net/minecraft/client/gl/JsonEffectGlShader
  • Field Details

    • PROGRAM_DIRECTORY

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

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lezi;b:Lorg/slf4j/Logger;
      intermediary field_1514 Lnet/minecraft/class_280;field_1514:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/gl/JsonEffectGlShader;LOGGER:Lorg/slf4j/Logger;
    • DEFAULT_UNIFORM

      private static final Uniform DEFAULT_UNIFORM
      Mappings:
      Namespace Name Mixin selector
      official c Lezi;c:Ldzz;
      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:
      Mappings:
      Namespace Name Mixin selector
      official d Lezi;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 Lezi;e:Lezi;
      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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Lezi;p:Leaa;
      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 Lezi;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 Lezi;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 Lezi;s:Leac;
      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 Lezi;t:Leac;
      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> Lezi;<init>(Laim;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 Lezi;a(Laim;Leae$a;Ljava/lang/String;)Leac;
      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(@Nullable @Nullable JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lezi;a(Lcom/google/gson/JsonObject;)Leaa;
      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 Lezi;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 Lezi;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 Leag;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 Lezi;a(Ljava/lang/String;)Leah;
      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 Lezi;b(Ljava/lang/String;)Ldzz;
      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 Lezi;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 Lezi;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 Lezi;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 Lezi;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 Leag;c()Leae;
      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 Leag;d()Leae;
      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 Leag;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 Lezi;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 Leag;a()I
      intermediary method_1270 Lnet/minecraft/class_3679;method_1270()I
      named getProgramRef Lnet/minecraft/client/gl/GlShader;getProgramRef()I