Record Class LoggedChatMessage.System
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.LoggedChatMessage.System
- All Implemented Interfaces:
LoggedChatEvent
,LoggedChatMessage
- Enclosing interface:
- LoggedChatMessage
public static record LoggedChatMessage.System(Component message, Instant timeStamp)
extends Record
implements LoggedChatMessage
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.LoggedChatMessage
LoggedChatMessage.Player, LoggedChatMessage.System
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.Returns the value of thetimeStamp
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.multiplayer.chat.LoggedChatMessage
toNarrationComponent
-
Field Details
-
message
The field for themessage
record component. -
timeStamp
The field for thetimeStamp
record component.
-
-
Constructor Details
-
System
Creates an instance of aSystem
record class.- Parameters:
message
- the value for themessage
record componenttimeStamp
- the value for thetimeStamp
record component
-
-
Method Details
-
toContentComponent
- Specified by:
toContentComponent
in interfaceLoggedChatMessage
-
canReport
- Specified by:
canReport
in interfaceLoggedChatMessage
-
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)
. -
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
timeStamp
Returns the value of thetimeStamp
record component.- Returns:
- the value of the
timeStamp
record component
-