Package net.minecraft
Record Class class_8828.LiteralTextContent
java.lang.Object
java.lang.Record
net.minecraft.class_8828.LiteralTextContent
- Record Components:
string
-
- All Implemented Interfaces:
class_8828
,TextContent
- Enclosing interface:
class_8828
public static record class_8828.LiteralTextContent(String string)
extends Record
implements class_8828
- Mappings:
Namespace Name official us$a
intermediary net/minecraft/class_8828$class_2585
named net/minecraft/class_8828$LiteralTextContent
official d
intermediary comp_737
named string
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_8828
class_8828.LiteralTextContent
Nested classes/interfaces inherited from interface net.minecraft.text.TextContent
TextContent.class_8823<T extends TextContent>
-
Field Summary
FieldsFields inherited from interface net.minecraft.class_8828
field_46623, field_46624, field_46625
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralTextContent
(String string) Creates an instance of aLiteralTextContent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.string()
toString()
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, wait
Methods inherited from interface net.minecraft.class_8828
method_54163
Methods inherited from interface net.minecraft.text.TextContent
parse
-
Field Details
-
string
The field for thestring
record component.
-
-
Constructor Details
-
LiteralTextContent
Creates an instance of aLiteralTextContent
record class.- Parameters:
string
- the value for thestring
record component
-
-
Method Details
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()
if it proceeds.- Specified by:
visit
in interfaceTextContent
- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ltm;a(Ltq$a;)Ljava/util/Optional;
intermediary method_27659
Lnet/minecraft/class_7417;method_27659(Lnet/minecraft/class_5348$class_5245;)Ljava/util/Optional;
named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$Visitor;)Ljava/util/Optional;
-
visit
Visits this content. Returns a value if the visitor terminates amid the visit, orOptional.empty()
if it proceeds.- Specified by:
visit
in interfaceTextContent
- Returns:
Optional.empty()
if the visit finished, or a terminating result from thevisitor
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ltm;a(Ltq$b;Lui;)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;
named visit
Lnet/minecraft/text/TextContent;visit(Lnet/minecraft/text/StringVisitable$StyledVisitor;Lnet/minecraft/text/Style;)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)
. -
string
- Specified by:
string
in interfaceclass_8828
- Mappings:
Namespace Name Mixin selector official b
Lus;b()Ljava/lang/String;
intermediary comp_737
Lnet/minecraft/class_8828;comp_737()Ljava/lang/String;
named string
Lnet/minecraft/class_8828;string()Ljava/lang/String;
-