Package net.minecraft.client.telemetry
Record Class TelemetryProperty<T>
java.lang.Object
java.lang.Record
net.minecraft.client.telemetry.TelemetryProperty<T>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static enum
static enum
-
Field Summary
Modifier 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 thecodec
record component.static final TelemetryProperty
<Integer> static final TelemetryProperty
<Instant> private final TelemetryProperty.Exporter
<T> The field for theexporter
record component.private final String
The field for theexportKey
record component.static final TelemetryProperty
<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty
<TelemetryProperty.GameMode> static final TelemetryProperty
<String> private final String
The field for theid
record 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 DateTimeFormatter
static final TelemetryProperty
<it.unimi.dsi.fastutil.longs.LongList> static final TelemetryProperty
<String> static final TelemetryProperty
<Integer> static final TelemetryProperty
<UUID> -
Constructor Summary
ConstructorDescriptionTelemetryProperty
(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryProperty.Exporter<T> exporter) Creates an instance of aTelemetryProperty
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TelemetryProperty
<Boolean> com.mojang.serialization.Codec
<T> codec()
Returns the value of thecodec
record 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 boolean
Indicates whether some other object is "equal to" this one.void
export
(TelemetryPropertyMap p_262111_, com.mojang.authlib.minecraft.TelemetryPropertyContainer p_262082_) exporter()
Returns the value of theexporter
record component.Returns the value of theexportKey
record component.gameLoadMeasurement
(String p_286636_, String p_286769_) final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record 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 theid
record component. -
exportKey
The field for theexportKey
record component. -
codec
The field for thecodec
record component. -
exporter
The field for theexporter
record 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 aTelemetryProperty
record class.- Parameters:
id
- the value for theid
record componentexportKey
- the value for theexportKey
record componentcodec
- the value for thecodec
record componentexporter
- the value for theexporter
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
exportKey
Returns the value of theexportKey
record component.- Returns:
- the value of the
exportKey
record component
-
codec
Returns the value of thecodec
record component.- Returns:
- the value of the
codec
record component
-
exporter
Returns the value of theexporter
record component.- Returns:
- the value of the
exporter
record component
-