Package net.minecraft.client.telemetry
Record Class TelemetryProperty<T>
java.lang.Object
java.lang.Record
net.minecraft.client.telemetry.TelemetryProperty<T>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumstatic enum
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionTelemetryProperty(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryProperty.Exporter<T> exporter) Creates an instance of aTelemetryPropertyrecord class.
- 
Method SummaryModifier 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- 
idThe field for theidrecord component.
- 
exportKeyThe field for theexportKeyrecord component.
- 
codecThe field for thecodecrecord component.
- 
exporterThe 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- 
TelemetryPropertypublic 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 the- idrecord component
- exportKey- the value for the- exportKeyrecord component
- codec- the value for the- codecrecord component
- exporter- the value for the- exporterrecord component
 
 
- 
- 
Method Details- 
createpublic 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
- 
gameLoadMeasurementpublic static TelemetryProperty<GameLoadTimesEvent.Measurement> gameLoadMeasurement(String p_286636_, String p_286769_) 
- 
longSamplespublic static TelemetryProperty<it.unimi.dsi.fastutil.longs.LongList> longSamples(String p_262055_, String p_261726_) 
- 
exportpublic void export(TelemetryPropertyMap p_262111_, com.mojang.authlib.minecraft.TelemetryPropertyContainer p_262082_) 
- 
title
- 
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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
exportKeyReturns the value of theexportKeyrecord component.- Returns:
- the value of the exportKeyrecord component
 
- 
codecReturns the value of thecodecrecord component.- Returns:
- the value of the codecrecord component
 
- 
exporterReturns the value of theexporterrecord component.- Returns:
- the value of the exporterrecord component
 
 
-