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 ftc
intermediary net/minecraft/class_7969
named net/minecraft/client/util/telemetry/TelemetryEventProperty
official x
intermediary comp_1171
named id
official y
intermediary comp_1172
named exportKey
official z
intermediary comp_1173
named codec
official A
intermediary comp_1174
named exporter
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • exportKey

      private final String exportKey
      The field for the exportKey record component.
    • codec

      private final com.mojang.serialization.Codec<T> codec
      The field for the codec record component.
    • exporter

      private final TelemetryEventProperty.PropertyExporter<T> exporter
      The field for the exporter record component.
    • DATE_TIME_FORMATTER

      private static final DateTimeFormatter DATE_TIME_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      official B Lftc;B:Ljava/time/format/DateTimeFormatter;
      intermediary field_41457 Lnet/minecraft/class_7969;field_41457:Ljava/time/format/DateTimeFormatter;
      named DATE_TIME_FORMATTER Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;DATE_TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
    • USER_ID

      public static final TelemetryEventProperty<String> USER_ID
      Mappings:
      Namespace Name Mixin selector
      official a Lftc;a:Lftc;
      intermediary field_41458 Lnet/minecraft/class_7969;field_41458:Lnet/minecraft/class_7969;
      named USER_ID Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;USER_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • CLIENT_ID

      public static final TelemetryEventProperty<String> CLIENT_ID
      Mappings:
      Namespace Name Mixin selector
      official b Lftc;b:Lftc;
      intermediary field_41459 Lnet/minecraft/class_7969;field_41459:Lnet/minecraft/class_7969;
      named CLIENT_ID Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;CLIENT_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • MINECRAFT_SESSION_ID

      public static final TelemetryEventProperty<UUID> MINECRAFT_SESSION_ID
      Mappings:
      Namespace Name Mixin selector
      official c Lftc;c:Lftc;
      intermediary field_41460 Lnet/minecraft/class_7969;field_41460:Lnet/minecraft/class_7969;
      named MINECRAFT_SESSION_ID Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;MINECRAFT_SESSION_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • GAME_VERSION

      public static final TelemetryEventProperty<String> GAME_VERSION
      Mappings:
      Namespace Name Mixin selector
      official d Lftc;d:Lftc;
      intermediary field_41461 Lnet/minecraft/class_7969;field_41461:Lnet/minecraft/class_7969;
      named GAME_VERSION Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;GAME_VERSION:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • OPERATING_SYSTEM

      public static final TelemetryEventProperty<String> OPERATING_SYSTEM
      Mappings:
      Namespace Name Mixin selector
      official e Lftc;e:Lftc;
      intermediary field_41462 Lnet/minecraft/class_7969;field_41462:Lnet/minecraft/class_7969;
      named OPERATING_SYSTEM Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;OPERATING_SYSTEM:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • PLATFORM

      public static final TelemetryEventProperty<String> PLATFORM
      Mappings:
      Namespace Name Mixin selector
      official f Lftc;f:Lftc;
      intermediary field_41463 Lnet/minecraft/class_7969;field_41463:Lnet/minecraft/class_7969;
      named PLATFORM Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;PLATFORM:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • CLIENT_MODDED

      public static final TelemetryEventProperty<Boolean> CLIENT_MODDED
      Mappings:
      Namespace Name Mixin selector
      official g Lftc;g:Lftc;
      intermediary field_41464 Lnet/minecraft/class_7969;field_41464:Lnet/minecraft/class_7969;
      named CLIENT_MODDED Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;CLIENT_MODDED:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • WORLD_SESSION_ID

      public static final TelemetryEventProperty<UUID> WORLD_SESSION_ID
      Mappings:
      Namespace Name Mixin selector
      official h Lftc;h:Lftc;
      intermediary field_41465 Lnet/minecraft/class_7969;field_41465:Lnet/minecraft/class_7969;
      named WORLD_SESSION_ID Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;WORLD_SESSION_ID:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • SERVER_MODDED

      public static final TelemetryEventProperty<Boolean> SERVER_MODDED
      Mappings:
      Namespace Name Mixin selector
      official i Lftc;i:Lftc;
      intermediary field_41466 Lnet/minecraft/class_7969;field_41466:Lnet/minecraft/class_7969;
      named SERVER_MODDED Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;SERVER_MODDED:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • SERVER_TYPE

      Mappings:
      Namespace Name Mixin selector
      official j Lftc;j:Lftc;
      intermediary field_41467 Lnet/minecraft/class_7969;field_41467:Lnet/minecraft/class_7969;
      named SERVER_TYPE Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;SERVER_TYPE:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • OPT_IN

      public static final TelemetryEventProperty<Boolean> OPT_IN
      Mappings:
      Namespace Name Mixin selector
      official k Lftc;k:Lftc;
      intermediary field_41468 Lnet/minecraft/class_7969;field_41468:Lnet/minecraft/class_7969;
      named OPT_IN Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;OPT_IN:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • EVENT_TIMESTAMP_UTC

      public static final TelemetryEventProperty<Instant> EVENT_TIMESTAMP_UTC
      Mappings:
      Namespace Name Mixin selector
      official l Lftc;l:Lftc;
      intermediary field_41469 Lnet/minecraft/class_7969;field_41469:Lnet/minecraft/class_7969;
      named EVENT_TIMESTAMP_UTC Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;EVENT_TIMESTAMP_UTC:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • GAME_MODE

      Mappings:
      Namespace Name Mixin selector
      official m Lftc;m:Lftc;
      intermediary field_41470 Lnet/minecraft/class_7969;field_41470:Lnet/minecraft/class_7969;
      named GAME_MODE Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;GAME_MODE:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • SECONDS_SINCE_LOAD

      public static final TelemetryEventProperty<Integer> SECONDS_SINCE_LOAD
      Mappings:
      Namespace Name Mixin selector
      official n Lftc;n:Lftc;
      intermediary field_41471 Lnet/minecraft/class_7969;field_41471:Lnet/minecraft/class_7969;
      named SECONDS_SINCE_LOAD Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;SECONDS_SINCE_LOAD:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • TICKS_SINCE_LOAD

      public static final TelemetryEventProperty<Integer> TICKS_SINCE_LOAD
      Mappings:
      Namespace Name Mixin selector
      official o Lftc;o:Lftc;
      intermediary field_41472 Lnet/minecraft/class_7969;field_41472:Lnet/minecraft/class_7969;
      named TICKS_SINCE_LOAD Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;TICKS_SINCE_LOAD:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • FRAME_RATE_SAMPLES

      public static final TelemetryEventProperty<LongList> FRAME_RATE_SAMPLES
      Mappings:
      Namespace Name Mixin selector
      official p Lftc;p:Lftc;
      intermediary field_41473 Lnet/minecraft/class_7969;field_41473:Lnet/minecraft/class_7969;
      named FRAME_RATE_SAMPLES Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;FRAME_RATE_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • RENDER_TIME_SAMPLES

      public static final TelemetryEventProperty<LongList> RENDER_TIME_SAMPLES
      Mappings:
      Namespace Name Mixin selector
      official q Lftc;q:Lftc;
      intermediary field_41474 Lnet/minecraft/class_7969;field_41474:Lnet/minecraft/class_7969;
      named RENDER_TIME_SAMPLES Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;RENDER_TIME_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • USED_MEMORY_SAMPLES

      public static final TelemetryEventProperty<LongList> USED_MEMORY_SAMPLES
      Mappings:
      Namespace Name Mixin selector
      official r Lftc;r:Lftc;
      intermediary field_41475 Lnet/minecraft/class_7969;field_41475:Lnet/minecraft/class_7969;
      named USED_MEMORY_SAMPLES Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;USED_MEMORY_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • NUMBER_OF_SAMPLES

      public static final TelemetryEventProperty<Integer> NUMBER_OF_SAMPLES
      Mappings:
      Namespace Name Mixin selector
      official s Lftc;s:Lftc;
      intermediary field_41476 Lnet/minecraft/class_7969;field_41476:Lnet/minecraft/class_7969;
      named NUMBER_OF_SAMPLES Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;NUMBER_OF_SAMPLES:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • RENDER_DISTANCE

      public static final TelemetryEventProperty<Integer> RENDER_DISTANCE
      Mappings:
      Namespace Name Mixin selector
      official t Lftc;t:Lftc;
      intermediary field_41477 Lnet/minecraft/class_7969;field_41477:Lnet/minecraft/class_7969;
      named RENDER_DISTANCE Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;RENDER_DISTANCE:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • DEDICATED_MEMORY_KB

      public static final TelemetryEventProperty<Integer> DEDICATED_MEMORY_KB
      Mappings:
      Namespace Name Mixin selector
      official u Lftc;u:Lftc;
      intermediary field_41478 Lnet/minecraft/class_7969;field_41478:Lnet/minecraft/class_7969;
      named DEDICATED_MEMORY_KB Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;DEDICATED_MEMORY_KB:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • WORLD_LOAD_TIME_MS

      public static final TelemetryEventProperty<Integer> WORLD_LOAD_TIME_MS
      Mappings:
      Namespace Name Mixin selector
      official v Lftc;v:Lftc;
      intermediary field_41479 Lnet/minecraft/class_7969;field_41479:Lnet/minecraft/class_7969;
      named WORLD_LOAD_TIME_MS Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;WORLD_LOAD_TIME_MS:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • NEW_WORLD

      public static final TelemetryEventProperty<Boolean> NEW_WORLD
      Mappings:
      Namespace Name Mixin selector
      official w Lftc;w:Lftc;
      intermediary field_41480 Lnet/minecraft/class_7969;field_41480:Lnet/minecraft/class_7969;
      named NEW_WORLD Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;NEW_WORLD:Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
  • Constructor Details

  • 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 a Lftc;a(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Lftc$a;)Lftc;
      intermediary method_47751 Lnet/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 of Lnet/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

      public static TelemetryEventProperty<Boolean> ofBoolean(String id, String exportKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lftc;a(Ljava/lang/String;Ljava/lang/String;)Lftc;
      intermediary method_47750 Lnet/minecraft/class_7969;method_47750(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;
      named ofBoolean Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofBoolean(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • ofString

      public static TelemetryEventProperty<String> ofString(String id, String exportKey)
      Mappings:
      Namespace Name Mixin selector
      official b Lftc;b(Ljava/lang/String;Ljava/lang/String;)Lftc;
      intermediary method_47752 Lnet/minecraft/class_7969;method_47752(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;
      named ofString Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofString(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • ofInteger

      public static TelemetryEventProperty<Integer> ofInteger(String id, String exportKey)
      Mappings:
      Namespace Name Mixin selector
      official c Lftc;c(Ljava/lang/String;Ljava/lang/String;)Lftc;
      intermediary method_47753 Lnet/minecraft/class_7969;method_47753(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;
      named ofInteger Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofInteger(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • ofUuid

      public static TelemetryEventProperty<UUID> ofUuid(String id, String exportKey)
      Mappings:
      Namespace Name Mixin selector
      official d Lftc;d(Ljava/lang/String;Ljava/lang/String;)Lftc;
      intermediary method_47754 Lnet/minecraft/class_7969;method_47754(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;
      named ofUuid Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;ofUuid(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;
    • ofLongList

      public static TelemetryEventProperty<LongList> ofLongList(String id, String exportKey)
      Mappings:
      Namespace Name Mixin selector
      official e Lftc;e(Ljava/lang/String;Ljava/lang/String;)Lftc;
      intermediary method_47755 Lnet/minecraft/class_7969;method_47755(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7969;
      named ofLongList Lnet/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 a Lftc;a(Lftd;Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;)V
      intermediary method_47749 Lnet/minecraft/class_7969;method_47749(Lnet/minecraft/class_7973;Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;)V
      named addTo Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;addTo(Lnet/minecraft/client/util/telemetry/PropertyMap;Lcom/mojang/authlib/minecraft/TelemetryPropertyContainer;)V
    • getTitle

      public MutableText getTitle()
      Mappings:
      Namespace Name Mixin selector
      official a Lftc;a()Ltf;
      intermediary method_47743 Lnet/minecraft/class_7969;method_47743()Lnet/minecraft/class_5250;
      named getTitle Lnet/minecraft/client/util/telemetry/TelemetryEventProperty;getTitle()Lnet/minecraft/text/MutableText;
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • exportKey

      public String exportKey()
      Returns the value of the exportKey record component.
      Returns:
      the value of the exportKey record component
    • codec

      public com.mojang.serialization.Codec<T> codec()
      Returns the value of the codec record component.
      Returns:
      the value of the codec record component
    • exporter

      Returns the value of the exporter record component.
      Returns:
      the value of the exporter record component