Record Class ShaderProgramDefinition

java.lang.Object
java.lang.Record
net.minecraft.client.gl.ShaderProgramDefinition
Record Components:
vertex -
fragment -
samplers -
uniforms -
defines -

@Environment(CLIENT) public record ShaderProgramDefinition(Identifier vertex, Identifier fragment, List<ShaderProgramDefinition.Sampler> samplers, List<ShaderProgramDefinition.Uniform> uniforms, Defines defines) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gl/ShaderProgramDefinition
intermediary net/minecraft/class_10157
official gmd
named vertex
intermediary comp_3116
official b
named fragment
intermediary comp_3117
official c
named samplers
intermediary comp_3118
official d
named uniforms
intermediary comp_3119
official e
named defines
intermediary comp_3120
official f
  • Field Details

    • vertex

      private final Identifier vertex
      The field for the vertex record component.
    • fragment

      private final Identifier fragment
      The field for the fragment record component.
    • samplers

      private final List<ShaderProgramDefinition.Sampler> samplers
      The field for the samplers record component.
    • uniforms

      private final List<ShaderProgramDefinition.Uniform> uniforms
      The field for the uniforms record component.
    • defines

      private final Defines defines
      The field for the defines record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ShaderProgramDefinition> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/gl/ShaderProgramDefinition;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_53949 Lnet/minecraft/class_10157;field_53949:Lcom/mojang/serialization/Codec;
      official a Lgmd;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • vertex

      public Identifier vertex()
      Returns the value of the vertex record component.
      Returns:
      the value of the vertex record component
    • fragment

      public Identifier fragment()
      Returns the value of the fragment record component.
      Returns:
      the value of the fragment record component
    • samplers

      Returns the value of the samplers record component.
      Returns:
      the value of the samplers record component
    • uniforms

      Returns the value of the uniforms record component.
      Returns:
      the value of the uniforms record component
    • defines

      public Defines defines()
      Returns the value of the defines record component.
      Returns:
      the value of the defines record component