Class ShaderEffect

java.lang.Object
net.minecraft.client.gl.ShaderEffect
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class ShaderEffect extends Object implements AutoCloseable
Mappings:
Namespace Name
official epb
intermediary net/minecraft/class_279
named net/minecraft/client/gl/ShaderEffect
  • Field Details

    • MAIN_TARGET_NAME

      private static final String MAIN_TARGET_NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a:Ljava/lang/String;
      intermediary field_32770 Lnet/minecraft/class_279;field_32770:Ljava/lang/String;
      named MAIN_TARGET_NAME Lnet/minecraft/client/gl/ShaderEffect;MAIN_TARGET_NAME:Ljava/lang/String;
    • mainTarget

      private final Framebuffer mainTarget
      Mappings:
      Namespace Name Mixin selector
      official b Lepb;b:Ldqk;
      intermediary field_1499 Lnet/minecraft/class_279;field_1499:Lnet/minecraft/class_276;
      named mainTarget Lnet/minecraft/client/gl/ShaderEffect;mainTarget:Lnet/minecraft/client/gl/Framebuffer;
    • resourceManager

      private final ResourceManager resourceManager
      Mappings:
      Namespace Name Mixin selector
      official c Lepb;c:Lafe;
      intermediary field_1502 Lnet/minecraft/class_279;field_1502:Lnet/minecraft/class_3300;
      named resourceManager Lnet/minecraft/client/gl/ShaderEffect;resourceManager:Lnet/minecraft/resource/ResourceManager;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official d Lepb;d:Ljava/lang/String;
      intermediary field_1494 Lnet/minecraft/class_279;field_1494:Ljava/lang/String;
      named name Lnet/minecraft/client/gl/ShaderEffect;name:Ljava/lang/String;
    • passes

      private final List<PostProcessShader> passes
      Mappings:
      Namespace Name Mixin selector
      official e Lepb;e:Ljava/util/List;
      intermediary field_1497 Lnet/minecraft/class_279;field_1497:Ljava/util/List;
      named passes Lnet/minecraft/client/gl/ShaderEffect;passes:Ljava/util/List;
    • targetsByName

      private final Map<String,Framebuffer> targetsByName
      Mappings:
      Namespace Name Mixin selector
      official f Lepb;f:Ljava/util/Map;
      intermediary field_1495 Lnet/minecraft/class_279;field_1495:Ljava/util/Map;
      named targetsByName Lnet/minecraft/client/gl/ShaderEffect;targetsByName:Ljava/util/Map;
    • defaultSizedTargets

      private final List<Framebuffer> defaultSizedTargets
      Mappings:
      Namespace Name Mixin selector
      official g Lepb;g:Ljava/util/List;
      intermediary field_1496 Lnet/minecraft/class_279;field_1496:Ljava/util/List;
      named defaultSizedTargets Lnet/minecraft/client/gl/ShaderEffect;defaultSizedTargets:Ljava/util/List;
    • projectionMatrix

      private Matrix4f projectionMatrix
      Mappings:
      Namespace Name Mixin selector
      official h Lepb;h:Ld;
      intermediary field_1498 Lnet/minecraft/class_279;field_1498:Lnet/minecraft/class_1159;
      named projectionMatrix Lnet/minecraft/client/gl/ShaderEffect;projectionMatrix:Lnet/minecraft/util/math/Matrix4f;
    • width

      private int width
      Mappings:
      Namespace Name Mixin selector
      official i Lepb;i:I
      intermediary field_1493 Lnet/minecraft/class_279;field_1493:I
      named width Lnet/minecraft/client/gl/ShaderEffect;width:I
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      official j Lepb;j:I
      intermediary field_1492 Lnet/minecraft/class_279;field_1492:I
      named height Lnet/minecraft/client/gl/ShaderEffect;height:I
    • time

      private float time
      Mappings:
      Namespace Name Mixin selector
      official k Lepb;k:F
      intermediary field_1501 Lnet/minecraft/class_279;field_1501:F
      named time Lnet/minecraft/client/gl/ShaderEffect;time:F
    • lastTickDelta

      private float lastTickDelta
      Mappings:
      Namespace Name Mixin selector
      official l Lepb;l:F
      intermediary field_1500 Lnet/minecraft/class_279;field_1500:F
      named lastTickDelta Lnet/minecraft/client/gl/ShaderEffect;lastTickDelta:F
  • Constructor Details

    • ShaderEffect

      public ShaderEffect(TextureManager textureManager, ResourceManager resourceManager, Framebuffer framebuffer, Identifier location) throws IOException, JsonSyntaxException
      Throws:
      IOException
      JsonSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepb;<init>(Lezd;Lafe;Ldqk;Lyb;)V
      intermediary <init> Lnet/minecraft/class_279;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_3300;Lnet/minecraft/class_276;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/client/gl/ShaderEffect;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/gl/Framebuffer;Lnet/minecraft/util/Identifier;)V
  • Method Details

    • parseEffect

      private void parseEffect(TextureManager textureManager, Identifier location) throws IOException, JsonSyntaxException
      Throws:
      IOException
      JsonSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(Lezd;Lyb;)V
      intermediary method_1256 Lnet/minecraft/class_279;method_1256(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)V
      named parseEffect Lnet/minecraft/client/gl/ShaderEffect;parseEffect(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;)V
    • parseTarget

      private void parseTarget(JsonElement jsonTarget) throws ShaderParseException
      Throws:
      ShaderParseException
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(Lcom/google/gson/JsonElement;)V
      intermediary method_1265 Lnet/minecraft/class_279;method_1265(Lcom/google/gson/JsonElement;)V
      named parseTarget Lnet/minecraft/client/gl/ShaderEffect;parseTarget(Lcom/google/gson/JsonElement;)V
    • parsePass

      private void parsePass(TextureManager textureManager, JsonElement jsonPass) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(Lezd;Lcom/google/gson/JsonElement;)V
      intermediary method_1257 Lnet/minecraft/class_279;method_1257(Lnet/minecraft/class_1060;Lcom/google/gson/JsonElement;)V
      named parsePass Lnet/minecraft/client/gl/ShaderEffect;parsePass(Lnet/minecraft/client/texture/TextureManager;Lcom/google/gson/JsonElement;)V
    • parseUniform

      private void parseUniform(JsonElement jsonUniform) throws ShaderParseException
      Throws:
      ShaderParseException
      Mappings:
      Namespace Name Mixin selector
      official b Lepb;b(Lcom/google/gson/JsonElement;)V
      intermediary method_1263 Lnet/minecraft/class_279;method_1263(Lcom/google/gson/JsonElement;)V
      named parseUniform Lnet/minecraft/client/gl/ShaderEffect;parseUniform(Lcom/google/gson/JsonElement;)V
    • getSecondaryTarget

      public Framebuffer getSecondaryTarget(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(Ljava/lang/String;)Ldqk;
      intermediary method_1264 Lnet/minecraft/class_279;method_1264(Ljava/lang/String;)Lnet/minecraft/class_276;
      named getSecondaryTarget Lnet/minecraft/client/gl/ShaderEffect;getSecondaryTarget(Ljava/lang/String;)Lnet/minecraft/client/gl/Framebuffer;
    • addTarget

      public void addTarget(String name, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(Ljava/lang/String;II)V
      intermediary method_1261 Lnet/minecraft/class_279;method_1261(Ljava/lang/String;II)V
      named addTarget Lnet/minecraft/client/gl/ShaderEffect;addTarget(Ljava/lang/String;II)V
    • close

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

      public PostProcessShader addPass(String programName, Framebuffer source, Framebuffer dest) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(Ljava/lang/String;Ldqk;Ldqk;)Lepc;
      intermediary method_1262 Lnet/minecraft/class_279;method_1262(Ljava/lang/String;Lnet/minecraft/class_276;Lnet/minecraft/class_276;)Lnet/minecraft/class_283;
      named addPass Lnet/minecraft/client/gl/ShaderEffect;addPass(Ljava/lang/String;Lnet/minecraft/client/gl/Framebuffer;Lnet/minecraft/client/gl/Framebuffer;)Lnet/minecraft/client/gl/PostProcessShader;
    • setupProjectionMatrix

      private void setupProjectionMatrix()
      Mappings:
      Namespace Name Mixin selector
      official b Lepb;b()V
      intermediary method_1267 Lnet/minecraft/class_279;method_1267()V
      named setupProjectionMatrix Lnet/minecraft/client/gl/ShaderEffect;setupProjectionMatrix()V
    • setupDimensions

      public void setupDimensions(int targetsWidth, int targetsHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(II)V
      intermediary method_1259 Lnet/minecraft/class_279;method_1259(II)V
      named setupDimensions Lnet/minecraft/client/gl/ShaderEffect;setupDimensions(II)V
    • render

      public void render(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a(F)V
      intermediary method_1258 Lnet/minecraft/class_279;method_1258(F)V
      named render Lnet/minecraft/client/gl/ShaderEffect;render(F)V
    • getName

      public final String getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lepb;a()Ljava/lang/String;
      intermediary method_1260 Lnet/minecraft/class_279;method_1260()Ljava/lang/String;
      named getName Lnet/minecraft/client/gl/ShaderEffect;getName()Ljava/lang/String;
    • getTarget

      Mappings:
      Namespace Name Mixin selector
      official b Lepb;b(Ljava/lang/String;)Ldqk;
      intermediary method_1266 Lnet/minecraft/class_279;method_1266(Ljava/lang/String;)Lnet/minecraft/class_276;
      named getTarget Lnet/minecraft/client/gl/ShaderEffect;getTarget(Ljava/lang/String;)Lnet/minecraft/client/gl/Framebuffer;