Record Class SentTelemetryEvent
java.lang.Object
java.lang.Record
net.minecraft.client.util.telemetry.SentTelemetryEvent
- Record Components:
type
-properties
-
@Environment(CLIENT)
public record SentTelemetryEvent(TelemetryEventType type, PropertyMap properties)
extends Record
- Mappings:
Namespace Name official fxo
intermediary net/minecraft/class_7962
named net/minecraft/client/util/telemetry/SentTelemetryEvent
official b
intermediary comp_1169
named type
official c
intermediary comp_1170
named properties
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SentTelemetryEvent>
private final PropertyMap
The field for theproperties
record component.private final TelemetryEventType
The field for thetype
record component. -
Constructor Summary
ConstructorDescriptionSentTelemetryEvent
(TelemetryEventType telemetryEventType, PropertyMap propertyMap) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.authlib.minecraft.TelemetryEvent
createEvent
(com.mojang.authlib.minecraft.TelemetrySession session) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theproperties
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
type
The field for thetype
record component. -
properties
The field for theproperties
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lfxo;a:Lcom/mojang/serialization/Codec;
intermediary field_41430
Lnet/minecraft/class_7962;field_41430:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/client/util/telemetry/SentTelemetryEvent;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
SentTelemetryEvent
-
-
Method Details
-
createEvent
public com.mojang.authlib.minecraft.TelemetryEvent createEvent(com.mojang.authlib.minecraft.TelemetrySession session) - Mappings:
Namespace Name Mixin selector official a
Lfxo;a(Lcom/mojang/authlib/minecraft/TelemetrySession;)Lcom/mojang/authlib/minecraft/TelemetryEvent;
intermediary method_47711
Lnet/minecraft/class_7962;method_47711(Lcom/mojang/authlib/minecraft/TelemetrySession;)Lcom/mojang/authlib/minecraft/TelemetryEvent;
named createEvent
Lnet/minecraft/client/util/telemetry/SentTelemetryEvent;createEvent(Lcom/mojang/authlib/minecraft/TelemetrySession;)Lcom/mojang/authlib/minecraft/TelemetryEvent;
-
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)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
properties
Returns the value of theproperties
record component.- Returns:
- the value of the
properties
record component
-