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 eek$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 Details

    • gameMode

      private final GameMode gameMode
      The field for the gameMode record component.
    • hardcore

      private final boolean hardcore
      The field for the hardcore record component.
  • Constructor Details

    • PlayerGameMode

      PlayerGameMode(GameMode gameMode, boolean bool)
  • Method Details

    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official a Leek$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

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

      public GameMode gameMode()
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • hardcore

      public boolean hardcore()
      Returns the value of the hardcore record component.
      Returns:
      the value of the hardcore record component