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 een$aintermediary net/minecraft/class_6628$class_6629named net/minecraft/client/util/telemetry/TelemetrySender$PlayerGameModeofficial aintermediary comp_136named gameModeofficial bintermediary comp_137named hardcore
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gameMode()Returns the value of thegameModerecord component.intgetId()booleanhardcore()Returns the value of thehardcorerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()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 aLeen$a;a()Iintermediary method_38735Lnet/minecraft/class_6628$class_6629;method_38735()Inamed getIdLnet/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 thegameModerecord component.- Returns:
- the value of the
gameModerecord component
-
hardcore
public boolean hardcore()Returns the value of thehardcorerecord component.- Returns:
- the value of the
hardcorerecord component
-