Package net.minecraft.client.telemetry
Record Class TelemetryProperty<T>
java.lang.Object
java.lang.Record
net.minecraft.client.telemetry.TelemetryProperty<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TelemetryProperty<Long> static final TelemetryProperty<String> static final TelemetryProperty<String> static final TelemetryProperty<Boolean> private final com.mojang.serialization.Codec<T> The field for thecodecrecord component.static final TelemetryProperty<Integer> static final TelemetryProperty<Instant> private final TelemetryProperty.Exporter<T> The field for theexporterrecord component.private final StringThe field for theexportKeyrecord component.static final TelemetryProperty<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty<TelemetryProperty.GameMode> static final TelemetryProperty<String> private final StringThe field for theidrecord component.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 DateTimeFormatterstatic final TelemetryProperty<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty<String> static final TelemetryProperty<Integer> static final TelemetryProperty<UUID> -
Constructor Summary
ConstructorsConstructorDescriptionTelemetryProperty(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryProperty.Exporter<T> exporter) Creates an instance of aTelemetryPropertyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TelemetryProperty<Boolean> com.mojang.serialization.Codec<T> codec()Returns the value of thecodecrecord component.static <T> TelemetryProperty<T> create(String p_262052_, String p_261851_, com.mojang.serialization.Codec<T> p_261617_, TelemetryProperty.Exporter<T> p_261478_) final booleanIndicates whether some other object is "equal to" this one.voidexport(TelemetryPropertyMap p_262111_, com.mojang.authlib.minecraft.TelemetryPropertyContainer p_262082_) exporter()Returns the value of theexporterrecord component.Returns the value of theexportKeyrecord component.gameLoadMeasurement(String p_286636_, String p_286769_) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.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()Returns a string representation of this record class.static TelemetryProperty<UUID>
-
Field Details
-
id
The field for theidrecord component. -
exportKey
The field for theexportKeyrecord component. -
codec
The field for thecodecrecord component. -
exporter
The field for theexporterrecord component. -
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
-
-
Constructor Details
-
TelemetryProperty
public TelemetryProperty(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryProperty.Exporter<T> exporter) Creates an instance of aTelemetryPropertyrecord class.- Parameters:
id- the value for theidrecord componentexportKey- the value for theexportKeyrecord componentcodec- the value for thecodecrecord componentexporter- the value for theexporterrecord component
-
-
Method Details
-
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
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
exportKey
Returns the value of theexportKeyrecord component.- Returns:
- the value of the
exportKeyrecord component
-
codec
Returns the value of thecodecrecord component.- Returns:
- the value of the
codecrecord component
-
exporter
Returns the value of theexporterrecord component.- Returns:
- the value of the
exporterrecord component
-