记录类 LoggedChatMessage.Player
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.LoggedChatMessage.Player
- 所有已实现的接口:
LoggedChatEvent
,LoggedChatMessage
- 封闭接口:
LoggedChatMessage
public static record LoggedChatMessage.Player(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel)
extends Record
implements LoggedChatMessage
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.client.multiplayer.chat.LoggedChatEvent
LoggedChatEvent.Type
从接口继承的嵌套类/接口 net.minecraft.client.multiplayer.chat.LoggedChatMessage
LoggedChatMessage.Player, LoggedChatMessage.System
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.MapCodec
<LoggedChatMessage.Player> private final PlayerChatMessage
message
记录组件的字段。private final com.mojang.authlib.GameProfile
profile
记录组件的字段。private static final DateTimeFormatter
private final ChatTrustLevel
trustLevel
记录组件的字段。 -
构造器概要
构造器构造器说明Player
(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel) 创建Player
记录类的实例。 -
方法概要
-
字段详细资料
-
profile
private final com.mojang.authlib.GameProfile profileprofile
记录组件的字段。 -
message
message
记录组件的字段。 -
trustLevel
trustLevel
记录组件的字段。 -
CODEC
-
TIME_FORMATTER
-
-
构造器详细资料
-
Player
public Player(com.mojang.authlib.GameProfile profile, PlayerChatMessage message, ChatTrustLevel trustLevel) 创建Player
记录类的实例。- 参数:
profile
-profile
记录组件的值message
-message
记录组件的值trustLevel
-trustLevel
记录组件的值
-
-
方法详细资料
-
toContentComponent
- 指定者:
toContentComponent
在接口中LoggedChatMessage
-
toNarrationComponent
- 指定者:
toNarrationComponent
在接口中LoggedChatMessage
-
toHeadingComponent
-
getTimeComponent
-
canReport
- 指定者:
canReport
在接口中LoggedChatMessage
-
profileId
-
type
- 指定者:
type
在接口中LoggedChatEvent
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
profile
public com.mojang.authlib.GameProfile profile()返回profile
记录组件的值。- 返回:
profile
记录组件的值
-
message
返回message
记录组件的值。- 返回:
message
记录组件的值
-
trustLevel
返回trustLevel
记录组件的值。- 返回:
trustLevel
记录组件的值
-