Record Class DebugHudEntryCategory

java.lang.Object
java.lang.Record
net.minecraft.client.gui.hud.debug.DebugHudEntryCategory
Record Components:
label -
sortKey -

@Environment(CLIENT) public record DebugHudEntryCategory(Text label, float sortKey) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gui/hud/debug/DebugHudEntryCategory
intermediary net/minecraft/class_11605
official gfh
named label
intermediary comp_4455
official c
named sortKey
intermediary comp_4456
official d
  • Field Details

    • label

      private final Text label
      The field for the label record component.
    • sortKey

      private final float sortKey
      The field for the sortKey record component.
    • TEXT

      public static final DebugHudEntryCategory TEXT
      Mappings:
      Namespace Name Mixin selector
      named TEXT Lnet/minecraft/client/gui/hud/debug/DebugHudEntryCategory;TEXT:Lnet/minecraft/client/gui/hud/debug/DebugHudEntryCategory;
      intermediary field_61538 Lnet/minecraft/class_11605;field_61538:Lnet/minecraft/class_11605;
      official a Lgfh;a:Lgfh;
    • RENDERER

      public static final DebugHudEntryCategory RENDERER
      Mappings:
      Namespace Name Mixin selector
      named RENDERER Lnet/minecraft/client/gui/hud/debug/DebugHudEntryCategory;RENDERER:Lnet/minecraft/client/gui/hud/debug/DebugHudEntryCategory;
      intermediary field_61539 Lnet/minecraft/class_11605;field_61539:Lnet/minecraft/class_11605;
      official b Lgfh;b:Lgfh;
  • Constructor Details

    • DebugHudEntryCategory

      public DebugHudEntryCategory(Text text, float float2)
  • Method Details

    • 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 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • label

      public Text label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • sortKey

      public float sortKey()
      Returns the value of the sortKey record component.
      Returns:
      the value of the sortKey record component