Record Class Defines

java.lang.Object
java.lang.Record
net.minecraft.client.gl.Defines
Record Components:
values -
flags -

@Environment(CLIENT) public record Defines(Map<String,String> values, Set<String> flags) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gl/Defines
intermediary net/minecraft/class_10149
official gma
named values
intermediary comp_3103
official c
named flags
intermediary comp_3104
official d
  • Field Details

    • values

      private final Map<String,String> values
      The field for the values record component.
    • flags

      private final Set<String> flags
      The field for the flags record component.
    • EMPTY

      public static final Defines EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/client/gl/Defines;EMPTY:Lnet/minecraft/client/gl/Defines;
      intermediary field_53930 Lnet/minecraft/class_10149;field_53930:Lnet/minecraft/class_10149;
      official a Lgma;a:Lgma;
    • CODEC

      public static final com.mojang.serialization.Codec<Defines> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/gl/Defines;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_53931 Lnet/minecraft/class_10149;field_53931:Lcom/mojang/serialization/Codec;
      official b Lgma;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • builder

      public static Defines.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/client/gl/Defines;builder()Lnet/minecraft/client/gl/Defines$Builder;
      intermediary method_62926 Lnet/minecraft/class_10149;method_62926()Lnet/minecraft/class_10149$class_10150;
      official a Lgma;a()Lgma$a;
    • withMerged

      public Defines withMerged(Defines other)
      Mappings:
      Namespace Name Mixin selector
      named withMerged Lnet/minecraft/client/gl/Defines;withMerged(Lnet/minecraft/client/gl/Defines;)Lnet/minecraft/client/gl/Defines;
      intermediary method_62928 Lnet/minecraft/class_10149;method_62928(Lnet/minecraft/class_10149;)Lnet/minecraft/class_10149;
      official a Lgma;a(Lgma;)Lgma;
    • toSource

      public String toSource()
      Mappings:
      Namespace Name Mixin selector
      named toSource Lnet/minecraft/client/gl/Defines;toSource()Ljava/lang/String;
      intermediary method_62929 Lnet/minecraft/class_10149;method_62929()Ljava/lang/String;
      official b Lgma;b()Ljava/lang/String;
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/client/gl/Defines;isEmpty()Z
      intermediary method_62930 Lnet/minecraft/class_10149;method_62930()Z
      official c Lgma;c()Z
    • 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.
    • values

      public Map<String,String> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • flags

      public Set<String> flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component