记录类 TelemetryProperty<T>
java.lang.Object
java.lang.Record
net.minecraft.client.telemetry.TelemetryProperty<T>
-
嵌套类概要
嵌套类修饰符和类型类说明static interface
static enum
static enum
-
字段概要
字段修饰符和类型字段说明static final TelemetryProperty
<Long> static final TelemetryProperty
<String> static final TelemetryProperty
<String> static final TelemetryProperty
<Boolean> private final com.mojang.serialization.Codec
<T> codec
记录组件的字段。static final TelemetryProperty
<Integer> static final TelemetryProperty
<Instant> private final TelemetryProperty.Exporter
<T> exporter
记录组件的字段。private final String
exportKey
记录组件的字段。static final TelemetryProperty
<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty
<TelemetryProperty.GameMode> static final TelemetryProperty
<String> private final String
id
记录组件的字段。static final TelemetryProperty
<String> static final TelemetryProperty
<GameLoadTimesEvent.Measurement> static final TelemetryProperty
<GameLoadTimesEvent.Measurement> static final TelemetryProperty
<GameLoadTimesEvent.Measurement> static final TelemetryProperty
<GameLoadTimesEvent.Measurement> static final TelemetryProperty
<UUID> static final TelemetryProperty
<Boolean> static final TelemetryProperty
<Integer> static final TelemetryProperty
<String> static final TelemetryProperty
<Boolean> static final TelemetryProperty
<String> static final TelemetryProperty
<String> static final TelemetryProperty
<Integer> static final TelemetryProperty
<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty
<Integer> static final TelemetryProperty
<Boolean> static final TelemetryProperty
<TelemetryProperty.ServerType> static final TelemetryProperty
<Integer> private static final DateTimeFormatter
static final TelemetryProperty
<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty
<String> static final TelemetryProperty
<Integer> static final TelemetryProperty
<UUID> -
构造器概要
构造器构造器说明TelemetryProperty
(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryProperty.Exporter<T> exporter) 创建TelemetryProperty
记录类的实例。 -
方法概要
修饰符和类型方法说明static TelemetryProperty
<Boolean> com.mojang.serialization.Codec
<T> codec()
返回codec
记录组件的值。static <T> TelemetryProperty
<T> create
(String p_262052_, String p_261851_, com.mojang.serialization.Codec<T> p_261617_, TelemetryProperty.Exporter<T> p_261478_) final boolean
指示某个其他对象是否“等于”此对象。void
export
(TelemetryPropertyMap p_262111_, com.mojang.authlib.minecraft.TelemetryPropertyContainer p_262082_) exporter()
返回exporter
记录组件的值。返回exportKey
记录组件的值。gameLoadMeasurement
(String p_286636_, String p_286769_) final int
hashCode()
返回此对象的哈希代码值。id()
返回id
记录组件的值。static TelemetryProperty
<Integer> static TelemetryProperty
<it.unimi.dsi.fastutil.longs.LongList> longSamples
(String p_262055_, String p_261726_) static TelemetryProperty
<Long> static TelemetryProperty
<String> title()
toString()
返回此记录类的字符串表示形式。static TelemetryProperty
<UUID>
-
字段详细资料
-
id
id
记录组件的字段。 -
exportKey
exportKey
记录组件的字段。 -
codec
codec
记录组件的字段。 -
exporter
exporter
记录组件的字段。 -
TIMESTAMP_FORMATTER
-
USER_ID
-
CLIENT_ID
-
MINECRAFT_SESSION_ID
-
GAME_VERSION
-
OPERATING_SYSTEM
-
PLATFORM
-
CLIENT_MODDED
-
LAUNCHER_NAME
-
WORLD_SESSION_ID
-
SERVER_MODDED
-
SERVER_TYPE
-
OPT_IN
-
EVENT_TIMESTAMP_UTC
-
GAME_MODE
-
REALMS_MAP_CONTENT
-
SECONDS_SINCE_LOAD
-
TICKS_SINCE_LOAD
-
FRAME_RATE_SAMPLES
-
RENDER_TIME_SAMPLES
-
USED_MEMORY_SAMPLES
-
NUMBER_OF_SAMPLES
-
RENDER_DISTANCE
-
DEDICATED_MEMORY_KB
-
WORLD_LOAD_TIME_MS
-
NEW_WORLD
-
LOAD_TIME_TOTAL_TIME_MS
-
LOAD_TIME_PRE_WINDOW_MS
-
LOAD_TIME_BOOTSTRAP_MS
-
LOAD_TIME_LOADING_OVERLAY_MS
-
ADVANCEMENT_ID
-
ADVANCEMENT_GAME_TIME
-
-
构造器详细资料
-
TelemetryProperty
public TelemetryProperty(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryProperty.Exporter<T> exporter) 创建TelemetryProperty
记录类的实例。- 参数:
id
-id
记录组件的值exportKey
-exportKey
记录组件的值codec
-codec
记录组件的值exporter
-exporter
记录组件的值
-
-
方法详细资料
-
create
public static <T> TelemetryProperty<T> create(String p_262052_, String p_261851_, com.mojang.serialization.Codec<T> p_261617_, TelemetryProperty.Exporter<T> p_261478_) -
bool
-
string
-
integer
-
makeLong
-
uuid
-
gameLoadMeasurement
public static TelemetryProperty<GameLoadTimesEvent.Measurement> gameLoadMeasurement(String p_286636_, String p_286769_) -
longSamples
public static TelemetryProperty<it.unimi.dsi.fastutil.longs.LongList> longSamples(String p_262055_, String p_261726_) -
export
public void export(TelemetryPropertyMap p_262111_, com.mojang.authlib.minecraft.TelemetryPropertyContainer p_262082_) -
title
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)
进行比较。 -
id
返回id
记录组件的值。- 返回:
id
记录组件的值
-
exportKey
返回exportKey
记录组件的值。- 返回:
exportKey
记录组件的值
-
codec
返回codec
记录组件的值。- 返回:
codec
记录组件的值
-
exporter
返回exporter
记录组件的值。- 返回:
exporter
记录组件的值
-