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 gej
  • Field Details

    • PROGRAM_DIRECTORY

      private static final String 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 Lgej;a:Ljava/lang/String;
    • LOGGER

      private static final Logger 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 Lgej;b:Lorg/slf4j/Logger;
    • DEFAULT_UNIFORM

      private static final Uniform 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 Lgej;c:Lfal;
    • 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 Lgej;d:Z
    • activeProgram

      private static JsonEffectShaderProgram 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 Lgej;e:Lgej;
    • 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 Lgej;f:I
    • samplerBinds

      private final Map<String,IntSupplier> 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 Lgej;g:Ljava/util/Map;
    • samplerNames

      private final List<String> 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 Lgej;h:Ljava/util/List;
    • samplerLocations

      private final List<Integer> 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 Lgej;i:Ljava/util/List;
    • uniformData

      private final List<GlUniform> 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 Lgej;j:Ljava/util/List;
    • uniformLocations

      private final List<Integer> 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 Lgej;k:Ljava/util/List;
    • uniformByName

      private final Map<String,GlUniform> 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 Lgej;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 Lgej;m:I
    • name

      private final String 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 Lgej;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 Lgej;o:Z
    • blendState

      private final GlBlendState 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 Lgej;p:Lfam;
    • attributeLocations

      private final List<Integer> 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 Lgej;q:Ljava/util/List;
    • attributeNames

      private final List<String> 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 Lgej;r:Ljava/util/List;
    • vertexShader

      private final EffectShaderStage 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 Lgej;s:Lfao;
    • fragmentShader

      private final EffectShaderStage 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 Lgej;t:Lfao;
  • Constructor Details

    • JsonEffectShaderProgram

      public JsonEffectShaderProgram(ResourceFactory resourceFactory, String name) throws IOException
      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> Lgej;<init>(Laug;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 Lgej;a(Laug;Lfaq$a;Ljava/lang/String;)Lfao;
    • deserializeBlendState

      public static GlBlendState deserializeBlendState(@Nullable @Nullable JsonObject json)
      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 Lgej;a(Lcom/google/gson/JsonObject;)Lfam;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • 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 Lgej;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 Lgej;g()V
    • markUniformsDirty

      public void markUniformsDirty()
      Specified by:
      markUniformsDirty in interface ShaderProgramSetupView
      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 Lfas;b()V
    • getUniformByName

      @Nullable public @Nullable GlUniform getUniformByName(String name)
      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 Lgej;a(Ljava/lang/String;)Lfat;
    • getUniformByNameOrDummy

      public Uniform getUniformByNameOrDummy(String name)
      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 Lgej;b(Ljava/lang/String;)Lfal;
    • 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 Lgej;i()V
    • addSampler

      private void addSampler(JsonElement json)
      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 Lgej;a(Lcom/google/gson/JsonElement;)V
    • bindSampler

      public void bindSampler(String samplerName, IntSupplier intSupplier)
      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 Lgej;a(Ljava/lang/String;Ljava/util/function/IntSupplier;)V
    • addUniform

      private void addUniform(JsonElement json) throws InvalidHierarchicalFileException
      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 Lgej;b(Lcom/google/gson/JsonElement;)V
    • getVertexShader

      public ShaderStage getVertexShader()
      Specified by:
      getVertexShader in interface ShaderProgramSetupView
      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 Lfas;c()Lfaq;
    • getFragmentShader

      public ShaderStage getFragmentShader()
      Specified by:
      getFragmentShader in interface ShaderProgramSetupView
      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 Lfas;d()Lfaq;
    • attachReferencedShaders

      public void attachReferencedShaders()
      Specified by:
      attachReferencedShaders in interface ShaderProgramSetupView
      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 Lfas;e()V
    • getName

      public String 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 Lgej;h()Ljava/lang/String;
    • getGlRef

      public int getGlRef()
      Specified by:
      getGlRef in interface ShaderProgramSetupView
      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 Lfas;a()I