Package net.minecraft
Record Class class_11722
java.lang.Object
java.lang.Record
net.minecraft.class_11722
- Record Components:
contents-
- All Implemented Interfaces:
TextContent
- Mappings:
Namespace Name named net/minecraft/class_11722intermediary net/minecraft/class_11722official zbnamed contentsintermediary comp_4591official c
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interfaceNested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.Type<T extends TextContent> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_11722.class_11724The field for thecontentsrecord component.static final com.mojang.serialization.MapCodec<class_11722> static final TextContent.Type<class_11722> private static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.<T> Optional<T> visit(StringVisitable.StyledVisitor<T> visitor, Style style) Visits this content.<T> Optional<T> visit(StringVisitable.Visitor<T> visitor) Visits this content.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.text.TextContent
parse
-
Field Details
-
contents
The field for thecontentsrecord component. -
field_61975
- Mappings:
Namespace Name Mixin selector named field_61975Lnet/minecraft/class_11722;field_61975:Ljava/lang/String;intermediary field_61975Lnet/minecraft/class_11722;field_61975:Ljava/lang/String;official dLzb;d:Ljava/lang/String;
-
field_61973
- Mappings:
Namespace Name Mixin selector named field_61973Lnet/minecraft/class_11722;field_61973:Lcom/mojang/serialization/MapCodec;intermediary field_61973Lnet/minecraft/class_11722;field_61973:Lcom/mojang/serialization/MapCodec;official aLzb;a:Lcom/mojang/serialization/MapCodec;
-
field_61974
- Mappings:
Namespace Name Mixin selector named field_61974Lnet/minecraft/class_11722;field_61974:Lnet/minecraft/text/TextContent$Type;intermediary field_61974Lnet/minecraft/class_11722;field_61974:Lnet/minecraft/class_7417$class_8823;official bLzb;b:Lxu$a;
-
-
Constructor Details
-
class_11722
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceTextContent- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/text/TextContent;getType()Lnet/minecraft/text/TextContent$Type;intermediary method_54163Lnet/minecraft/class_7417;method_54163()Lnet/minecraft/class_7417$class_8823;official aLxu;a()Lxu$a;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()if it proceeds.- Specified by:
visitin interfaceTextContent- Returns:
Optional.empty()if the visit finished, or a terminating result from thevisitor- See Also:
- Mappings:
Namespace Name Mixin selector named visitLnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;intermediary method_27659Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;official aLxu;a(Lxz$a;)Ljava/util/Optional;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()if it proceeds.- Specified by:
visitin interfaceTextContent- Returns:
Optional.empty()if the visit finished, or a terminating result from thevisitor- See Also:
- Mappings:
Namespace Name Mixin selector named visitLnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)Ljava/util/Optional;intermediary method_27660Lnet/minecraft/class_7417;method_27660(Lnet/minecraft/class_5348$class_5246;Lnet/minecraft/class_2583;)Ljava/util/Optional;official aLxu;a(Lxz$b;Lyr;)Ljava/util/Optional;
-
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. -
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. -
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). -
contents
Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-