Record Class ParsedSelector

java.lang.Object
java.lang.Record
net.minecraft.text.ParsedSelector
Record Components:
comp_3067 -
comp_3068 -

public record ParsedSelector(String comp_3067, EntitySelector comp_3068) extends Record
Mappings:
Namespace Name
named net/minecraft/text/ParsedSelector
intermediary net/minecraft/class_10104
official hn
named comp_3067
intermediary comp_3067
official b
named comp_3068
intermediary comp_3068
official c
  • Field Details

    • comp_3067

      private final String comp_3067
      The field for the comp_3067 record component.
    • comp_3068

      private final EntitySelector comp_3068
      The field for the comp_3068 record component.
    • CODEC

      public static final com.mojang.serialization.Codec<ParsedSelector> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/text/ParsedSelector;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_53684 Lnet/minecraft/class_10104;field_53684:Lcom/mojang/serialization/Codec;
      official a Lhn;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • parse

      public static com.mojang.serialization.DataResult<ParsedSelector> parse(String selector)
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/text/ParsedSelector;parse(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
      intermediary method_62667 Lnet/minecraft/class_10104;method_62667(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
      official a Lhn;a(Ljava/lang/String;)Lcom/mojang/serialization/DataResult;
    • equals

      public boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public 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
    • toString

      public 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
    • comp_3067

      public String comp_3067()
      Returns the value of the comp_3067 record component.
      Returns:
      the value of the comp_3067 record component
    • comp_3068

      public EntitySelector comp_3068()
      Returns the value of the comp_3068 record component.
      Returns:
      the value of the comp_3068 record component