Class ShaderLoader.Cache

java.lang.Object
net.minecraft.client.gl.ShaderLoader.Cache
All Implemented Interfaces:
AutoCloseable
Enclosing class:
ShaderLoader

@Environment(CLIENT) private class ShaderLoader.Cache extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/gl/ShaderLoader$Cache
intermediary net/minecraft/class_10151$class_10170
official gmb$a
  • Field Details

    • definitions

      private final ShaderLoader.Definitions definitions
      Mappings:
      Namespace Name Mixin selector
      named definitions Lnet/minecraft/client/gl/ShaderLoader$Cache;definitions:Lnet/minecraft/client/gl/ShaderLoader$Definitions;
      intermediary field_54022 Lnet/minecraft/class_10151$class_10170;field_54022:Lnet/minecraft/class_10151$class_10153;
      official b Lgmb$a;b:Lgmb$c;
    • shaderPrograms

      final Map<ShaderProgramKey,Optional<ShaderProgram>> shaderPrograms
      Mappings:
      Namespace Name Mixin selector
      named shaderPrograms Lnet/minecraft/client/gl/ShaderLoader$Cache;shaderPrograms:Ljava/util/Map;
      intermediary field_54023 Lnet/minecraft/class_10151$class_10170;field_54023:Ljava/util/Map;
      official c Lgmb$a;c:Ljava/util/Map;
    • compiledShaders

      final Map<ShaderLoader.ShaderKey,CompiledShader> compiledShaders
      Mappings:
      Namespace Name Mixin selector
      named compiledShaders Lnet/minecraft/client/gl/ShaderLoader$Cache;compiledShaders:Ljava/util/Map;
      intermediary field_54024 Lnet/minecraft/class_10151$class_10170;field_54024:Ljava/util/Map;
      official d Lgmb$a;d:Ljava/util/Map;
    • postEffectProcessors

      final Map<Identifier,Optional<PostEffectProcessor>> postEffectProcessors
      Mappings:
      Namespace Name Mixin selector
      named postEffectProcessors Lnet/minecraft/client/gl/ShaderLoader$Cache;postEffectProcessors:Ljava/util/Map;
      intermediary field_54025 Lnet/minecraft/class_10151$class_10170;field_54025:Ljava/util/Map;
      official e Lgmb$a;e:Ljava/util/Map;
  • Constructor Details

    • Cache

      Cache(ShaderLoader.Definitions definitions)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gl/ShaderLoader$Cache;<init>(Lnet/minecraft/client/gl/ShaderLoader;Lnet/minecraft/client/gl/ShaderLoader$Definitions;)V
      intermediary <init> Lnet/minecraft/class_10151$class_10170;<init>(Lnet/minecraft/class_10151;Lnet/minecraft/class_10151$class_10153;)V
      official <init> Lgmb$a;<init>(Lgmb;Lgmb$c;)V
  • Method Details

    • getOrLoadProgram

      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named getOrLoadProgram Lnet/minecraft/client/gl/ShaderLoader$Cache;getOrLoadProgram(Lnet/minecraft/client/gl/ShaderProgramKey;)Lnet/minecraft/client/gl/ShaderProgram;
      intermediary method_63525 Lnet/minecraft/class_10151$class_10170;method_63525(Lnet/minecraft/class_10156;)Lnet/minecraft/class_5944;
      official a Lgmb$a;a(Lgmc;)Lgkt;
    • loadProgram

      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named loadProgram Lnet/minecraft/client/gl/ShaderLoader$Cache;loadProgram(Lnet/minecraft/client/gl/ShaderProgramKey;)Lnet/minecraft/client/gl/ShaderProgram;
      intermediary method_63528 Lnet/minecraft/class_10151$class_10170;method_63528(Lnet/minecraft/class_10156;)Lnet/minecraft/class_5944;
      official b Lgmb$a;b(Lgmc;)Lgkt;
    • loadShader

      private CompiledShader loadShader(Identifier id, CompiledShader.Type type, Defines defines) throws ShaderLoader.LoadException
      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named loadShader Lnet/minecraft/client/gl/ShaderLoader$Cache;loadShader(Lnet/minecraft/util/Identifier;Lnet/minecraft/client/gl/CompiledShader$Type;Lnet/minecraft/client/gl/Defines;)Lnet/minecraft/client/gl/CompiledShader;
      intermediary method_63522 Lnet/minecraft/class_10151$class_10170;method_63522(Lnet/minecraft/class_2960;Lnet/minecraft/class_10141$class_282;Lnet/minecraft/class_10149;)Lnet/minecraft/class_10141;
      official a Lgmb$a;a(Lalz;Lfgg$a;Lgma;)Lfgg;
    • compileShader

      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named compileShader Lnet/minecraft/client/gl/ShaderLoader$Cache;compileShader(Lnet/minecraft/client/gl/ShaderLoader$ShaderKey;)Lnet/minecraft/client/gl/CompiledShader;
      intermediary method_63524 Lnet/minecraft/class_10151$class_10170;method_63524(Lnet/minecraft/class_10151$class_10154;)Lnet/minecraft/class_10141;
      official a Lgmb$a;a(Lgmb$d;)Lfgg;
    • getOrLoadProcessor

      @Nullable public @Nullable PostEffectProcessor getOrLoadProcessor(Identifier id, Set<Identifier> availableExternalTargets) throws ShaderLoader.LoadException
      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named getOrLoadProcessor Lnet/minecraft/client/gl/ShaderLoader$Cache;getOrLoadProcessor(Lnet/minecraft/util/Identifier;Ljava/util/Set;)Lnet/minecraft/client/gl/PostEffectProcessor;
      intermediary method_63523 Lnet/minecraft/class_10151$class_10170;method_63523(Lnet/minecraft/class_2960;Ljava/util/Set;)Lnet/minecraft/class_279;
      official a Lgmb$a;a(Lalz;Ljava/util/Set;)Lglo;
    • loadProcessor

      private PostEffectProcessor loadProcessor(Identifier id, Set<Identifier> availableExternalTargets) throws ShaderLoader.LoadException
      Throws:
      ShaderLoader.LoadException
      Mappings:
      Namespace Name Mixin selector
      named loadProcessor Lnet/minecraft/client/gl/ShaderLoader$Cache;loadProcessor(Lnet/minecraft/util/Identifier;Ljava/util/Set;)Lnet/minecraft/client/gl/PostEffectProcessor;
      intermediary method_63527 Lnet/minecraft/class_10151$class_10170;method_63527(Lnet/minecraft/class_2960;Ljava/util/Set;)Lnet/minecraft/class_279;
      official b Lgmb$a;b(Lalz;Ljava/util/Set;)Lglo;
    • close

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