Record Class TelemetrySender.PlayerGameMode
java.lang.Object
java.lang.Record
net.minecraft.client.util.telemetry.TelemetrySender.PlayerGameMode
- Record Components:
gameMode
-hardcore
-
- Enclosing class:
TelemetrySender
@Environment(CLIENT)
private static record TelemetrySender.PlayerGameMode(GameMode gameMode, boolean hardcore)
extends Record
- Mappings:
Namespace Name official efi$a
intermediary net/minecraft/class_6628$class_6629
named net/minecraft/client/util/telemetry/TelemetrySender$PlayerGameMode
official a
intermediary comp_136
named gameMode
official b
intermediary comp_137
named hardcore
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.gameMode()
Returns the value of thegameMode
record component.int
getId()
boolean
hardcore()
Returns the value of thehardcore
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
PlayerGameMode
PlayerGameMode(GameMode gameMode, boolean bool)
-
-
Method Details
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official a
Lefi$a;a()I
intermediary method_38735
Lnet/minecraft/class_6628$class_6629;method_38735()I
named getId
Lnet/minecraft/client/util/telemetry/TelemetrySender$PlayerGameMode;getId()I
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
gameMode
Returns the value of thegameMode
record component.- Returns:
- the value of the
gameMode
record component
-
hardcore
public boolean hardcore()Returns the value of thehardcore
record component.- Returns:
- the value of the
hardcore
record component
-