Package net.minecraft

Record Class class_11722

java.lang.Object
java.lang.Record
net.minecraft.class_11722
Record Components:
contents -
All Implemented Interfaces:
TextContent

public record class_11722(class_11722.class_11724 contents) extends Record implements TextContent
Mappings:
Namespace Name
named net/minecraft/class_11722
intermediary net/minecraft/class_11722
official zb
named contents
intermediary comp_4591
official c
  • Field Details

    • contents

      private final class_11722.class_11724 contents
      The field for the contents record component.
    • field_61975

      private static final String field_61975
      Mappings:
      Namespace Name Mixin selector
      named field_61975 Lnet/minecraft/class_11722;field_61975:Ljava/lang/String;
      intermediary field_61975 Lnet/minecraft/class_11722;field_61975:Ljava/lang/String;
      official d Lzb;d:Ljava/lang/String;
    • field_61973

      public static final com.mojang.serialization.MapCodec<class_11722> field_61973
      Mappings:
      Namespace Name Mixin selector
      named field_61973 Lnet/minecraft/class_11722;field_61973:Lcom/mojang/serialization/MapCodec;
      intermediary field_61973 Lnet/minecraft/class_11722;field_61973:Lcom/mojang/serialization/MapCodec;
      official a Lzb;a:Lcom/mojang/serialization/MapCodec;
    • field_61974

      public static final TextContent.Type<class_11722> field_61974
      Mappings:
      Namespace Name Mixin selector
      named field_61974 Lnet/minecraft/class_11722;field_61974:Lnet/minecraft/text/TextContent$Type;
      intermediary field_61974 Lnet/minecraft/class_11722;field_61974:Lnet/minecraft/class_7417$class_8823;
      official b Lzb;b:Lxu$a;
  • Constructor Details

  • Method Details

    • getType

      public TextContent.Type<?> getType()
      Specified by:
      getType in interface TextContent
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;
      intermediary method_54163 Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;
      official a Lxu;a()Lxu$a;
    • visit

      public <T> Optional<T> visit(StringVisitable.Visitor<T> visitor)
      Visits this content. Returns a value if the visitor terminates amid the visit, or Optional.empty() if it proceeds.
      Specified by:
      visit in interface TextContent
      Returns:
      Optional.empty() if the visit finished, or a terminating result from the visitor
      See Also:
      • invalid reference
        Text#visit(StringVisitable.Visitor)
      Mappings:
      Namespace Name Mixin selector
      named visit Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
      intermediary method_27659 Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
      official a Lxu;a(Lxz$a;)Ljava/util/Optional;
    • visit

      public <T> Optional<T> visit(StringVisitable.StyledVisitor<T> visitor, Style style)
      Visits this content. Returns a value if the visitor terminates amid the visit, or Optional.empty() if it proceeds.
      Specified by:
      visit in interface TextContent
      Returns:
      Optional.empty() if the visit finished, or a terminating result from the visitor
      See Also:
      • invalid reference
        Text#visit(StringVisitable.StyledVisitor, Style)
      Mappings:
      Namespace Name Mixin selector
      named visit Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;
      intermediary method_27660 Lnet/minecraft/class_7417;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;
      official a Lxu;a(Lxz$b;Lyr;)Ljava/util/Optional;
    • 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.
    • contents

      public class_11722.class_11724 contents()
      Returns the value of the contents record component.
      Returns:
      the value of the contents record component