Record Class TelemetryEventProperty<T>
java.lang.Object
java.lang.Record
net.minecraft.client.util.telemetry.TelemetryEventProperty<T>
- Record Components:
id-exportKey-codec-exporter-
@Environment(CLIENT)
public record TelemetryEventProperty<T>(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryEventProperty.PropertyExporter<T> exporter)
extends Record
- Mappings:
Namespace Name official fyaintermediary net/minecraft/class_7969named net/minecraft/client/util/telemetry/TelemetryEventPropertyofficial xintermediary comp_1171named idofficial yintermediary comp_1172named exportKeyofficial zintermediary comp_1173named codecofficial Aintermediary comp_1174named exporter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TelemetryEventProperty<String>static final TelemetryEventProperty<Boolean>private final com.mojang.serialization.Codec<T>The field for thecodecrecord component.private static final DateTimeFormatterstatic final TelemetryEventProperty<Integer>static final TelemetryEventProperty<Instant>private final TelemetryEventProperty.PropertyExporter<T>The field for theexporterrecord component.private final StringThe field for theexportKeyrecord component.static final TelemetryEventProperty<LongList>static final TelemetryEventProperty<TelemetryEventProperty.GameMode>static final TelemetryEventProperty<String>private final StringThe field for theidrecord component.static final TelemetryEventProperty<UUID>static final TelemetryEventProperty<Boolean>static final TelemetryEventProperty<Integer>static final TelemetryEventProperty<String>static final TelemetryEventProperty<Boolean>static final TelemetryEventProperty<String>static final TelemetryEventProperty<Integer>static final TelemetryEventProperty<LongList>static final TelemetryEventProperty<Integer>static final TelemetryEventProperty<Boolean>static final TelemetryEventProperty<TelemetryEventProperty.ServerType>static final TelemetryEventProperty<Integer>static final TelemetryEventProperty<LongList>static final TelemetryEventProperty<String>static final TelemetryEventProperty<Integer>static final TelemetryEventProperty<UUID> -
Constructor Summary
ConstructorsConstructorDescriptionTelemetryEventProperty(String string, String string2, com.mojang.serialization.Codec<T> codec, TelemetryEventProperty.PropertyExporter<T> propertyExporter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTo(PropertyMap map, com.mojang.authlib.minecraft.TelemetryPropertyContainer container) com.mojang.serialization.Codec<T>codec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.exporter()Returns the value of theexporterrecord component.Returns the value of theexportKeyrecord component.getTitle()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static <T> TelemetryEventProperty<T>of(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryEventProperty.PropertyExporter<T> exporter) static TelemetryEventProperty<Boolean>static TelemetryEventProperty<Integer>static TelemetryEventProperty<LongList>ofLongList(String id, String exportKey) static TelemetryEventProperty<String>static TelemetryEventProperty<UUID>toString()Returns a string representation of this record class.
-
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. -
DATE_TIME_FORMATTER
- Mappings:
Namespace Name Mixin selector official BLfya;B:Ljava/time/format/DateTimeFormatter;intermediary field_41457Lnet/minecraft/class_7969;field_41457:Ljava/time/format/DateTimeFormatter;named DATE_TIME_FORMATTERLnet/minecraft/client/util/telemetry/TelemetryEventProperty;DATE_TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
-
USER_ID
- Mappings:
Namespace Name Mixin selector official aLfya;a:Lfya;intermediary field_41458Lnet/minecraft/class_7969;field_41458:Lnet/minecraft/class_7969;named USER_IDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;USER_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
CLIENT_ID
- Mappings:
Namespace Name Mixin selector official bLfya;b:Lfya;intermediary field_41459Lnet/minecraft/class_7969;field_41459:Lnet/minecraft/class_7969;named CLIENT_IDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;CLIENT_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
MINECRAFT_SESSION_ID
- Mappings:
Namespace Name Mixin selector official cLfya;c:Lfya;intermediary field_41460Lnet/minecraft/class_7969;field_41460:Lnet/minecraft/class_7969;named MINECRAFT_SESSION_IDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;MINECRAFT_SESSION_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
GAME_VERSION
- Mappings:
Namespace Name Mixin selector official dLfya;d:Lfya;intermediary field_41461Lnet/minecraft/class_7969;field_41461:Lnet/minecraft/class_7969;named GAME_VERSIONLnet/minecraft/client/util/telemetry/TelemetryEventProperty;GAME_VERSION:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
OPERATING_SYSTEM
- Mappings:
Namespace Name Mixin selector official eLfya;e:Lfya;intermediary field_41462Lnet/minecraft/class_7969;field_41462:Lnet/minecraft/class_7969;named OPERATING_SYSTEMLnet/minecraft/client/util/telemetry/TelemetryEventProperty;OPERATING_SYSTEM:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
PLATFORM
- Mappings:
Namespace Name Mixin selector official fLfya;f:Lfya;intermediary field_41463Lnet/minecraft/class_7969;field_41463:Lnet/minecraft/class_7969;named PLATFORMLnet/minecraft/client/util/telemetry/TelemetryEventProperty;PLATFORM:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
CLIENT_MODDED
- Mappings:
Namespace Name Mixin selector official gLfya;g:Lfya;intermediary field_41464Lnet/minecraft/class_7969;field_41464:Lnet/minecraft/class_7969;named CLIENT_MODDEDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;CLIENT_MODDED:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
WORLD_SESSION_ID
- Mappings:
Namespace Name Mixin selector official hLfya;h:Lfya;intermediary field_41465Lnet/minecraft/class_7969;field_41465:Lnet/minecraft/class_7969;named WORLD_SESSION_IDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;WORLD_SESSION_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
SERVER_MODDED
- Mappings:
Namespace Name Mixin selector official iLfya;i:Lfya;intermediary field_41466Lnet/minecraft/class_7969;field_41466:Lnet/minecraft/class_7969;named SERVER_MODDEDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;SERVER_MODDED:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
SERVER_TYPE
- Mappings:
Namespace Name Mixin selector official jLfya;j:Lfya;intermediary field_41467Lnet/minecraft/class_7969;field_41467:Lnet/minecraft/class_7969;named SERVER_TYPELnet/minecraft/client/util/telemetry/TelemetryEventProperty;SERVER_TYPE:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
OPT_IN
- Mappings:
Namespace Name Mixin selector official kLfya;k:Lfya;intermediary field_41468Lnet/minecraft/class_7969;field_41468:Lnet/minecraft/class_7969;named OPT_INLnet/minecraft/client/util/telemetry/TelemetryEventProperty;OPT_IN:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
EVENT_TIMESTAMP_UTC
- Mappings:
Namespace Name Mixin selector official lLfya;l:Lfya;intermediary field_41469Lnet/minecraft/class_7969;field_41469:Lnet/minecraft/class_7969;named EVENT_TIMESTAMP_UTCLnet/minecraft/client/util/telemetry/TelemetryEventProperty;EVENT_TIMESTAMP_UTC:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
GAME_MODE
- Mappings:
Namespace Name Mixin selector official mLfya;m:Lfya;intermediary field_41470Lnet/minecraft/class_7969;field_41470:Lnet/minecraft/class_7969;named GAME_MODELnet/minecraft/client/util/telemetry/TelemetryEventProperty;GAME_MODE:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
SECONDS_SINCE_LOAD
- Mappings:
Namespace Name Mixin selector official nLfya;n:Lfya;intermediary field_41471Lnet/minecraft/class_7969;field_41471:Lnet/minecraft/class_7969;named SECONDS_SINCE_LOADLnet/minecraft/client/util/telemetry/TelemetryEventProperty;SECONDS_SINCE_LOAD:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
TICKS_SINCE_LOAD
- Mappings:
Namespace Name Mixin selector official oLfya;o:Lfya;intermediary field_41472Lnet/minecraft/class_7969;field_41472:Lnet/minecraft/class_7969;named TICKS_SINCE_LOADLnet/minecraft/client/util/telemetry/TelemetryEventProperty;TICKS_SINCE_LOAD:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
FRAME_RATE_SAMPLES
- Mappings:
Namespace Name Mixin selector official pLfya;p:Lfya;intermediary field_41473Lnet/minecraft/class_7969;field_41473:Lnet/minecraft/class_7969;named FRAME_RATE_SAMPLESLnet/minecraft/client/util/telemetry/TelemetryEventProperty;FRAME_RATE_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
RENDER_TIME_SAMPLES
- Mappings:
Namespace Name Mixin selector official qLfya;q:Lfya;intermediary field_41474Lnet/minecraft/class_7969;field_41474:Lnet/minecraft/class_7969;named RENDER_TIME_SAMPLESLnet/minecraft/client/util/telemetry/TelemetryEventProperty;RENDER_TIME_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
USED_MEMORY_SAMPLES
- Mappings:
Namespace Name Mixin selector official rLfya;r:Lfya;intermediary field_41475Lnet/minecraft/class_7969;field_41475:Lnet/minecraft/class_7969;named USED_MEMORY_SAMPLESLnet/minecraft/client/util/telemetry/TelemetryEventProperty;USED_MEMORY_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
NUMBER_OF_SAMPLES
- Mappings:
Namespace Name Mixin selector official sLfya;s:Lfya;intermediary field_41476Lnet/minecraft/class_7969;field_41476:Lnet/minecraft/class_7969;named NUMBER_OF_SAMPLESLnet/minecraft/client/util/telemetry/TelemetryEventProperty;NUMBER_OF_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
RENDER_DISTANCE
- Mappings:
Namespace Name Mixin selector official tLfya;t:Lfya;intermediary field_41477Lnet/minecraft/class_7969;field_41477:Lnet/minecraft/class_7969;named RENDER_DISTANCELnet/minecraft/client/util/telemetry/TelemetryEventProperty;RENDER_DISTANCE:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
DEDICATED_MEMORY_KB
- Mappings:
Namespace Name Mixin selector official uLfya;u:Lfya;intermediary field_41478Lnet/minecraft/class_7969;field_41478:Lnet/minecraft/class_7969;named DEDICATED_MEMORY_KBLnet/minecraft/client/util/telemetry/TelemetryEventProperty;DEDICATED_MEMORY_KB:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
WORLD_LOAD_TIME_MS
- Mappings:
Namespace Name Mixin selector official vLfya;v:Lfya;intermediary field_41479Lnet/minecraft/class_7969;field_41479:Lnet/minecraft/class_7969;named WORLD_LOAD_TIME_MSLnet/minecraft/client/util/telemetry/TelemetryEventProperty;WORLD_LOAD_TIME_MS:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
NEW_WORLD
- Mappings:
Namespace Name Mixin selector official wLfya;w:Lfya;intermediary field_41480Lnet/minecraft/class_7969;field_41480:Lnet/minecraft/class_7969;named NEW_WORLDLnet/minecraft/client/util/telemetry/TelemetryEventProperty;NEW_WORLD:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
-
Constructor Details
-
TelemetryEventProperty
public TelemetryEventProperty(String string, String string2, com.mojang.serialization.Codec<T> codec, TelemetryEventProperty.PropertyExporter<T> propertyExporter)
-
-
Method Details
-
of
public static <T> TelemetryEventProperty<T> of(String id, String exportKey, com.mojang.serialization.Codec<T> codec, TelemetryEventProperty.PropertyExporter<T> exporter) - Mappings:
Namespace Name Mixin selector official aLfya;a(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Lfya$a;)Lfya;intermediary method_47751Lnet/minecraft/class_7969;method_47751(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Lnet/minecraft/class_7969$class_7970;)Lnet/minecraft/class_7969;named ofLnet/minecraft/client/util/telemetry/TelemetryEventProperty;of(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Lnet/minecraft/client/util/telemetry/TelemetryEventProperty$PropertyExporter;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
ofBoolean
- Mappings:
Namespace Name Mixin selector official aLfya;a(Ljava/lang/String;Ljava/lang/String;)Lfya;intermediary method_47750Lnet/minecraft/class_7969;method_47750(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;named ofBooleanLnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofBoolean(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
ofString
- Mappings:
Namespace Name Mixin selector official bLfya;b(Ljava/lang/String;Ljava/lang/String;)Lfya;intermediary method_47752Lnet/minecraft/class_7969;method_47752(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;named ofStringLnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofString(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
ofInteger
- Mappings:
Namespace Name Mixin selector official cLfya;c(Ljava/lang/String;Ljava/lang/String;)Lfya;intermediary method_47753Lnet/minecraft/class_7969;method_47753(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;named ofIntegerLnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofInteger(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
ofUuid
- Mappings:
Namespace Name Mixin selector official dLfya;d(Ljava/lang/String;Ljava/lang/String;)Lfya;intermediary method_47754Lnet/minecraft/class_7969;method_47754(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;named ofUuidLnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofUuid(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
ofLongList
- Mappings:
Namespace Name Mixin selector official eLfya;e(Ljava/lang/String;Ljava/lang/String;)Lfya;intermediary method_47755Lnet/minecraft/class_7969;method_47755(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;named ofLongListLnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofLongList(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
-
addTo
public void addTo(PropertyMap map, com.mojang.authlib.minecraft.TelemetryPropertyContainer container) - Mappings:
Namespace Name Mixin selector official aLfya;a(Lfyb;Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;)Vintermediary method_47749Lnet/minecraft/class_7969;method_47749(Lnet/minecraft/class_7973;Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;)Vnamed addToLnet/minecraft/client/util/telemetry/TelemetryEventProperty;addTo(Lnet/minecraft/client/util/telemetry/PropertyMap;Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;)V
-
getTitle
- Mappings:
Namespace Name Mixin selector official aLfya;a()Lti;intermediary method_47743Lnet/minecraft/class_7969;method_47743()Lnet/minecraft/class_5250;named getTitleLnet/minecraft/client/util/telemetry/TelemetryEventProperty;getTitle()Lnet/minecraft/text/MutableText;
-
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
-