Record Class ShaderManager.Configs
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.ShaderManager.Configs
- All Implemented Interfaces:
ShaderSource, AutoCloseable
- Enclosing class:
ShaderManager
public static record ShaderManager.Configs(Map<ShaderManager.ShaderSourceKey, String> shaderSources, Map<Identifier, ShaderSource.CachedIncludeSource> includeSources, Map<Identifier, PostChainConfig> postChains)
extends Record
implements ShaderSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface ShaderSource
ShaderSource.CachedIncludeSource -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShaderManager.Configsprivate final Map<Identifier, ShaderSource.CachedIncludeSource> The field for theincludeSourcesrecord component.private final Map<Identifier, PostChainConfig> The field for thepostChainsrecord component.private final Map<ShaderManager.ShaderSourceKey, String> The field for theshaderSourcesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConfigs(Map<ShaderManager.ShaderSourceKey, String> shaderSources, Map<Identifier, ShaderSource.CachedIncludeSource> includeSources, Map<Identifier, PostChainConfig> postChains) Creates an instance of aConfigsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.getInclude(Identifier id) getShader(Identifier id, ShaderType type) final inthashCode()Returns a hash code value for this object.Returns the value of theincludeSourcesrecord component.Returns the value of thepostChainsrecord component.Returns the value of theshaderSourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
shaderSources
The field for theshaderSourcesrecord component. -
includeSources
The field for theincludeSourcesrecord component. -
postChains
The field for thepostChainsrecord component. -
EMPTY
-
-
Constructor Details
-
Configs
public Configs(Map<ShaderManager.ShaderSourceKey, String> shaderSources, Map<Identifier, ShaderSource.CachedIncludeSource> includeSources, Map<Identifier, PostChainConfig> postChains) Creates an instance of aConfigsrecord class.- Parameters:
shaderSources- the value for theshaderSourcesrecord componentincludeSources- the value for theincludeSourcesrecord componentpostChains- the value for thepostChainsrecord component
-
-
Method Details
-
getShader
- Specified by:
getShaderin interfaceShaderSource
-
getInclude
- Specified by:
getIncludein interfaceShaderSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceShaderSource
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
shaderSources
Returns the value of theshaderSourcesrecord component.- Returns:
- the value of the
shaderSourcesrecord component
-
includeSources
Returns the value of theincludeSourcesrecord component.- Returns:
- the value of the
includeSourcesrecord component
-
postChains
Returns the value of thepostChainsrecord component.- Returns:
- the value of the
postChainsrecord component
-