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 SummaryNested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.LoggedChatEventLoggedChatEvent.TypeNested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.LoggedChatMessageLoggedChatMessage.Player, LoggedChatMessage.System
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thetimeStamprecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.multiplayer.chat.LoggedChatMessagetoNarrationComponent
- 
Field Details- 
messageThe field for themessagerecord component.
- 
timeStampThe field for thetimeStamprecord component.
- 
CODEC
 
- 
- 
Constructor Details- 
SystemCreates an instance of aSystemrecord class.- Parameters:
- message- the value for the- messagerecord component
- timeStamp- the value for the- timeStamprecord component
 
 
- 
- 
Method Details- 
toContentComponent- Specified by:
- toContentComponentin interface- LoggedChatMessage
 
- 
canReport- Specified by:
- canReportin interface- LoggedChatMessage
 
- 
type- Specified by:
- typein interface- LoggedChatEvent
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
messageReturns the value of themessagerecord component.- Returns:
- the value of the messagerecord component
 
- 
timeStampReturns the value of thetimeStamprecord component.- Returns:
- the value of the timeStamprecord component
 
 
-