Package net.minecraft.client.gl
Class ShaderLoader
java.lang.Object
net.minecraft.resource.SinglePreparationResourceReloader<ShaderLoader.Definitions>
net.minecraft.client.gl.ShaderLoader
- All Implemented Interfaces:
AutoCloseable,ResourceReloader
@Environment(CLIENT)
public class ShaderLoader
extends SinglePreparationResourceReloader<ShaderLoader.Definitions>
implements AutoCloseable
- Mappings:
Namespace Name named net/minecraft/client/gl/ShaderLoaderintermediary net/minecraft/class_10151official gsf
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic final recordstatic classprivate static final recordNested classes/interfaces inherited from interface net.minecraft.resource.ResourceReloader
ResourceReloader.Synchronizer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ShaderLoader.Cachestatic final intprivate static final String(package private) static final Loggerprivate static final ResourceFinderstatic final String(package private) final TextureManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(ShaderLoader.Definitions definitions, ResourceManager resourceManager, Profiler profiler) Handles the prepared intermediate object.voidclose()private static GlImportProcessorcreateImportProcessor(Map<Identifier, Resource> allResources, Identifier id) getName()Returns a user-friendly name for logging.getSource(Identifier id, ShaderType type) private voidhandleError(Exception exception) private static booleanloadPostEffect(Identifier id, Set<Identifier> availableExternalTargets) private static voidloadPostEffect(Identifier id, Resource resource, ImmutableMap.Builder<Identifier, PostEffectPipeline> builder) private static voidloadShaderSource(Identifier id, Resource resource, ShaderType type, Map<Identifier, Resource> allResources, ImmutableMap.Builder<ShaderLoader.ShaderSourceKey, String> builder) protected ShaderLoader.Definitionsprepare(ResourceManager resourceManager, Profiler profiler) Prepares the intermediate object.Methods inherited from class net.minecraft.resource.SinglePreparationResourceReloader
reload
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/gl/ShaderLoader;LOGGER:Lorg/slf4j/Logger;intermediary field_53937Lnet/minecraft/class_10151;field_53937:Lorg/slf4j/Logger;official cLgsf;c:Lorg/slf4j/Logger;
-
field_53936
public static final int field_53936- See Also:
- Mappings:
Namespace Name Mixin selector named field_53936Lnet/minecraft/client/gl/ShaderLoader;field_53936:Iintermediary field_53936Lnet/minecraft/class_10151;field_53936:Iofficial aLgsf;a:I
-
SHADERS_PATH
- See Also:
- Mappings:
Namespace Name Mixin selector named SHADERS_PATHLnet/minecraft/client/gl/ShaderLoader;SHADERS_PATH:Ljava/lang/String;intermediary field_53934Lnet/minecraft/class_10151;field_53934:Ljava/lang/String;official bLgsf;b:Ljava/lang/String;
-
INCLUDE_PATH
- See Also:
- Mappings:
Namespace Name Mixin selector named INCLUDE_PATHLnet/minecraft/client/gl/ShaderLoader;INCLUDE_PATH:Ljava/lang/String;intermediary field_53935Lnet/minecraft/class_10151;field_53935:Ljava/lang/String;official dLgsf;d:Ljava/lang/String;
-
POST_EFFECT_FINDER
- Mappings:
Namespace Name Mixin selector named POST_EFFECT_FINDERLnet/minecraft/client/gl/ShaderLoader;POST_EFFECT_FINDER:Lnet/minecraft/resource/ResourceFinder;intermediary field_53939Lnet/minecraft/class_10151;field_53939:Lnet/minecraft/class_7654;official eLgsf;e:Lalk;
-
textureManager
- Mappings:
Namespace Name Mixin selector named textureManagerLnet/minecraft/client/gl/ShaderLoader;textureManager:Lnet/minecraft/client/texture/TextureManager;intermediary field_53940Lnet/minecraft/class_10151;field_53940:Lnet/minecraft/class_1060;official fLgsf;f:Lhks;
-
onError
- Mappings:
Namespace Name Mixin selector named onErrorLnet/minecraft/client/gl/ShaderLoader;onError:Ljava/util/function/Consumer;intermediary field_54019Lnet/minecraft/class_10151;field_54019:Ljava/util/function/Consumer;official gLgsf;g:Ljava/util/function/Consumer;
-
cache
- Mappings:
Namespace Name Mixin selector named cacheLnet/minecraft/client/gl/ShaderLoader;cache:Lnet/minecraft/client/gl/ShaderLoader$Cache;intermediary field_54020Lnet/minecraft/class_10151;field_54020:Lnet/minecraft/class_10151$class_10170;official hLgsf;h:Lgsf$a;
-
-
Constructor Details
-
ShaderLoader
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gl/ShaderLoader;<init>(Lnet/minecraft/client/texture/TextureManager;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_10151;<init>(Lnet/minecraft/class_1060;Ljava/util/function/Consumer;)Vofficial <init>Lgsf;<init>(Lhks;Ljava/util/function/Consumer;)V
-
-
Method Details
-
prepare
Description copied from class:SinglePreparationResourceReloaderPrepares the intermediate object.This method is called in the prepare executor in a reload.
- Specified by:
preparein classSinglePreparationResourceReloader<ShaderLoader.Definitions>- Parameters:
resourceManager- the resource managerprofiler- the prepare profiler- Returns:
- the prepared object
- Mappings:
Namespace Name Mixin selector named prepareLnet/minecraft/client/gl/ShaderLoader;prepare(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/client/gl/ShaderLoader$Definitions;intermediary method_62942Lnet/minecraft/class_10151;method_62942(Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Lnet/minecraft/class_10151$class_10153;official aLgsf;a(Lavo;Lbrm;)Lgsf$c;
-
loadShaderSource
private static void loadShaderSource(Identifier id, Resource resource, ShaderType type, Map<Identifier, Resource> allResources, ImmutableMap.Builder<ShaderLoader.ShaderSourceKey, String> builder) - Mappings:
Namespace Name Mixin selector named loadShaderSourceLnet/minecraft/client/gl/ShaderLoader;loadShaderSource(Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/Resource;Lcom/mojang/blaze3d/shaders/ShaderType;Ljava/util/Map;Lcom/google/common/collect/ImmutableMap$Builder;)Vintermediary method_62939Lnet/minecraft/class_10151;method_62939(Lnet/minecraft/class_2960;Lnet/minecraft/class_3298;Lcom/mojang/blaze3d/shaders/ShaderType;Ljava/util/Map;Lcom/google/common/collect/ImmutableMap$Builder;)Vofficial aLgsf;a(Lalr;Lavm;Lcom/mojang/blaze3d/shaders/ShaderType;Ljava/util/Map;Lcom/google/common/collect/ImmutableMap$Builder;)V
-
createImportProcessor
private static GlImportProcessor createImportProcessor(Map<Identifier, Resource> allResources, Identifier id) - Mappings:
Namespace Name Mixin selector named createImportProcessorLnet/minecraft/client/gl/ShaderLoader;createImportProcessor(Ljava/util/Map;Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/gl/GlImportProcessor;intermediary method_62950Lnet/minecraft/class_10151;method_62950(Ljava/util/Map;Lnet/minecraft/class_2960;)Lnet/minecraft/class_5913;official aLgsf;a(Ljava/util/Map;Lalr;)Lfkl;
-
loadPostEffect
private static void loadPostEffect(Identifier id, Resource resource, ImmutableMap.Builder<Identifier, PostEffectPipeline> builder) - Mappings:
Namespace Name Mixin selector named loadPostEffectLnet/minecraft/client/gl/ShaderLoader;loadPostEffect(Lnet/minecraft/util/Identifier;Lnet/minecraft/resource/Resource;Lcom/google/common/collect/ImmutableMap$Builder;)Vintermediary method_62953Lnet/minecraft/class_10151;method_62953(Lnet/minecraft/class_2960;Lnet/minecraft/class_3298;Lcom/google/common/collect/ImmutableMap$Builder;)Vofficial aLgsf;a(Lalr;Lavm;Lcom/google/common/collect/ImmutableMap$Builder;)V
-
isShaderSource
- Mappings:
Namespace Name Mixin selector named isShaderSourceLnet/minecraft/client/gl/ShaderLoader;isShaderSource(Lnet/minecraft/util/Identifier;)Zintermediary method_62952Lnet/minecraft/class_10151;method_62952(Lnet/minecraft/class_2960;)Zofficial aLgsf;a(Lalr;)Z
-
apply
protected void apply(ShaderLoader.Definitions definitions, ResourceManager resourceManager, Profiler profiler) Description copied from class:SinglePreparationResourceReloaderHandles the prepared intermediate object.This method is called in the apply executor, or the game engine, in a reload.
- Specified by:
applyin classSinglePreparationResourceReloader<ShaderLoader.Definitions>- Parameters:
definitions- the prepared objectresourceManager- the resource managerprofiler- the apply profiler- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/gl/ShaderLoader;apply(Lnet/minecraft/client/gl/ShaderLoader$Definitions;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/profiler/Profiler;)Vintermediary method_62945Lnet/minecraft/class_10151;method_62945(Lnet/minecraft/class_10151$class_10153;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)Vofficial aLgsf;a(Lgsf$c;Lavo;Lbrm;)V
-
getName
Returns a user-friendly name for logging.- Specified by:
getNamein interfaceResourceReloader- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/resource/ResourceReloader;getName()Ljava/lang/String;intermediary method_22322Lnet/minecraft/class_3302;method_22322()Ljava/lang/String;official getNameLavi;getName()Ljava/lang/String;
-
handleError
- Mappings:
Namespace Name Mixin selector named handleErrorLnet/minecraft/client/gl/ShaderLoader;handleError(Ljava/lang/Exception;)Vintermediary method_65232Lnet/minecraft/class_10151;method_65232(Ljava/lang/Exception;)Vofficial aLgsf;a(Ljava/lang/Exception;)V
-
loadPostEffect
@Nullable public @Nullable PostEffectProcessor loadPostEffect(Identifier id, Set<Identifier> availableExternalTargets) - Mappings:
Namespace Name Mixin selector named loadPostEffectLnet/minecraft/client/gl/ShaderLoader;loadPostEffect(Lnet/minecraft/util/Identifier;Ljava/util/Set;)Lnet/minecraft/client/gl/PostEffectProcessor;intermediary method_62941Lnet/minecraft/class_10151;method_62941(Lnet/minecraft/class_2960;Ljava/util/Set;)Lnet/minecraft/class_279;official aLgsf;a(Lalr;Ljava/util/Set;)Lgrr;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getSource
- Mappings:
Namespace Name Mixin selector named getSourceLnet/minecraft/client/gl/ShaderLoader;getSource(Lnet/minecraft/util/Identifier;Lcom/mojang/blaze3d/shaders/ShaderType;)Ljava/lang/String;intermediary method_68496Lnet/minecraft/class_10151;method_68496(Lnet/minecraft/class_2960;Lcom/mojang/blaze3d/shaders/ShaderType;)Ljava/lang/String;official aLgsf;a(Lalr;Lcom/mojang/blaze3d/shaders/ShaderType;)Ljava/lang/String;
-