Class PostEffectProcessor

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

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

    • MAIN_TARGET_NAME

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

      private final Framebuffer mainTarget
      Mappings:
      Namespace Name Mixin selector
      named mainTarget Lnet/minecraft/client/gl/PostEffectProcessor;mainTarget:Lnet/minecraft/client/gl/Framebuffer;
      intermediary field_1499 Lnet/minecraft/class_279;field_1499:Lnet/minecraft/class_276;
      official b Lgew;b:Lezp;
    • resourceFactory

      private final ResourceFactory resourceFactory
      Mappings:
      Namespace Name Mixin selector
      named resourceFactory Lnet/minecraft/client/gl/PostEffectProcessor;resourceFactory:Lnet/minecraft/resource/ResourceFactory;
      intermediary field_49569 Lnet/minecraft/class_279;field_49569:Lnet/minecraft/class_5912;
      official c Lgew;c:Laug;
    • name

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

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

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

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

      private Matrix4f projectionMatrix
      Mappings:
      Namespace Name Mixin selector
      named projectionMatrix Lnet/minecraft/client/gl/PostEffectProcessor;projectionMatrix:Lorg/joml/Matrix4f;
      intermediary field_1498 Lnet/minecraft/class_279;field_1498:Lorg/joml/Matrix4f;
      official h Lgew;h:Lorg/joml/Matrix4f;
    • width

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

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

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

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

    • PostEffectProcessor

      public PostEffectProcessor(TextureManager textureManager, ResourceFactory resourceFactory, Framebuffer framebuffer, Identifier id) throws IOException, JsonSyntaxException
      Throws:
      IOException
      JsonSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gl/PostEffectProcessor;<init>(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/resource/ResourceFactory;Lnet/minecraft/client/gl/Framebuffer;Lnet/minecraft/util/Identifier;)V
      intermediary <init> Lnet/minecraft/class_279;<init>(Lnet/minecraft/class_1060;Lnet/minecraft/class_5912;Lnet/minecraft/class_276;Lnet/minecraft/class_2960;)V
      official <init> Lgew;<init>(Lgqg;Laug;Lezp;Lakq;)V
  • Method Details

    • parseEffect

      private void parseEffect(TextureManager textureManager, Identifier id) throws IOException, JsonSyntaxException
      Throws:
      IOException
      JsonSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parseEffect Lnet/minecraft/client/gl/PostEffectProcessor;parseEffect(Lnet/minecraft/client/texture/TextureManager;Lnet/minecraft/util/Identifier;)V
      intermediary method_1256 Lnet/minecraft/class_279;method_1256(Lnet/minecraft/class_1060;Lnet/minecraft/class_2960;)V
      official a Lgew;a(Lgqg;Lakq;)V
    • parseTarget

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

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

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

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

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

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

      public PostEffectPass addPass(String programName, Framebuffer source, Framebuffer dest, boolean linear) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named addPass Lnet/minecraft/client/gl/PostEffectProcessor;addPass(Ljava/lang/String;Lnet/minecraft/client/gl/Framebuffer;Lnet/minecraft/client/gl/Framebuffer;Z)Lnet/minecraft/client/gl/PostEffectPass;
      intermediary method_1262 Lnet/minecraft/class_279;method_1262(Ljava/lang/String;Lnet/minecraft/class_276;Lnet/minecraft/class_276;Z)Lnet/minecraft/class_283;
      official a Lgew;a(Ljava/lang/String;Lezp;Lezp;Z)Lgex;
    • setupProjectionMatrix

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

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

      private void setTexFilter(int texFilter)
      Mappings:
      Namespace Name Mixin selector
      named setTexFilter Lnet/minecraft/client/gl/PostEffectProcessor;setTexFilter(I)V
      intermediary method_58233 Lnet/minecraft/class_279;method_58233(I)V
      official a Lgew;a(I)V
    • render

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

      public void setUniforms(String name, float value)
      Mappings:
      Namespace Name Mixin selector
      named setUniforms Lnet/minecraft/client/gl/PostEffectProcessor;setUniforms(Ljava/lang/String;F)V
      intermediary method_57799 Lnet/minecraft/class_279;method_57799(Ljava/lang/String;F)V
      official a Lgew;a(Ljava/lang/String;F)V
    • getName

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

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