JavaScript is disabled on your browser.
Record Components:
content
-
All Implemented Interfaces:
SentMessage
Enclosing interface:
SentMessage
The wrapper used for messages without associated source profile.
Mappings:
Namespace
Name
named
net/minecraft/network/message/SentMessage$Profileless
intermediary
net/minecraft/class_7604$class_7606
official
yk$a
named
content
intermediary
comp_1081
official
a
Field Summary
Fields
The field for the
content
record component.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Returns the value of the
content
record component.
final boolean
Indicates whether some other object is "equal to" this one.
final int
Returns a hash code value for this object.
void
Returns a string representation of this record class.
Field Details
content
private final Text content
The field for the
content
record component.
Constructor Details
Profileless
public Profileless (Text text)
Method Details
content
Returns the value of the
content
record component.
Specified by:
content
in interface SentMessage
Returns:
the value of the content
record component
send
Specified by:
send
in interface SentMessage
Mappings:
Namespace
Name
Mixin selector
named
send
Lnet/minecraft/network/message/SentMessage;send(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/network/message/MessageType$Parameters;)V
intermediary
method_45095
Lnet/minecraft/class_7604;method_45095(Lnet/minecraft/class_3222;ZLnet/minecraft/class_2556$class_7602;)V
official
a
Lyk;a(Lasi;ZLxr$a;)V
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.