Record Class LoggedChatMessage.Player
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.LoggedChatMessage.Player
- All Implemented Interfaces:
- LoggedChatEvent,- LoggedChatMessage
- Enclosing interface:
- LoggedChatMessage
public static record LoggedChatMessage.Player(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel)
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LoggedChatMessage.Player>private final PlayerChatMessageThe field for themessagerecord component.private final com.mojang.authlib.GameProfileThe field for theprofilerecord component.private static final DateTimeFormatterprivate final ChatTrustLevelThe field for thetrustLevelrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPlayer(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel) Creates an instance of aPlayerrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfinal booleanIndicates whether some other object is "equal to" this one.private Componentfinal inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.com.mojang.authlib.GameProfileprofile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustLevelrecord component.type()
- 
Field Details- 
profileprivate final com.mojang.authlib.GameProfile profileThe field for theprofilerecord component.
- 
messageThe field for themessagerecord component.
- 
trustLevelThe field for thetrustLevelrecord component.
- 
CODEC
- 
TIME_FORMATTER
 
- 
- 
Constructor Details- 
Playerpublic Player(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel) Creates an instance of aPlayerrecord class.- Parameters:
- profile- the value for the- profilerecord component
- message- the value for the- messagerecord component
- trustLevel- the value for the- trustLevelrecord component
 
 
- 
- 
Method Details- 
toContentComponent- Specified by:
- toContentComponentin interface- LoggedChatMessage
 
- 
toNarrationComponent- Specified by:
- toNarrationComponentin interface- LoggedChatMessage
 
- 
toHeadingComponent
- 
getTimeComponent
- 
canReport- Specified by:
- canReportin interface- LoggedChatMessage
 
- 
profileId
- 
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).
- 
profilepublic com.mojang.authlib.GameProfile profile()Returns the value of theprofilerecord component.- Returns:
- the value of the profilerecord component
 
- 
messageReturns the value of themessagerecord component.- Returns:
- the value of the messagerecord component
 
- 
trustLevelReturns the value of thetrustLevelrecord component.- Returns:
- the value of the trustLevelrecord component
 
 
-