Record Class ReportType

java.lang.Object
java.lang.Record
net.minecraft.util.crash.ReportType
Record Components:
header -
nuggets -

public record ReportType(String header, List<String> nuggets) extends Record
Mappings:
Namespace Name
named net/minecraft/util/crash/ReportType
intermediary net/minecraft/class_9813
official y
named header
intermediary comp_2856
official f
named nuggets
intermediary comp_2857
official g
  • Field Details

    • nuggets

      private final List<String> nuggets
      The field for the nuggets record component.
    • MINECRAFT_CRASH_REPORT

      public static final ReportType MINECRAFT_CRASH_REPORT
      Mappings:
      Namespace Name Mixin selector
      named MINECRAFT_CRASH_REPORT Lnet/minecraft/util/crash/ReportType;MINECRAFT_CRASH_REPORT:Lnet/minecraft/util/crash/ReportType;
      intermediary field_52181 Lnet/minecraft/class_9813;field_52181:Lnet/minecraft/class_9813;
      official a Ly;a:Ly;
    • MINECRAFT_PROFILER_RESULTS

      public static final ReportType MINECRAFT_PROFILER_RESULTS
      Mappings:
      Namespace Name Mixin selector
      named MINECRAFT_PROFILER_RESULTS Lnet/minecraft/util/crash/ReportType;MINECRAFT_PROFILER_RESULTS:Lnet/minecraft/util/crash/ReportType;
      intermediary field_52182 Lnet/minecraft/class_9813;field_52182:Lnet/minecraft/class_9813;
      official b Ly;b:Ly;
    • MINECRAFT_TEST_REPORT

      public static final ReportType MINECRAFT_TEST_REPORT
      Mappings:
      Namespace Name Mixin selector
      named MINECRAFT_TEST_REPORT Lnet/minecraft/util/crash/ReportType;MINECRAFT_TEST_REPORT:Lnet/minecraft/util/crash/ReportType;
      intermediary field_52183 Lnet/minecraft/class_9813;field_52183:Lnet/minecraft/class_9813;
      official c Ly;c:Ly;
    • MINECRAFT_NETWORK_PROTOCOL_ERROR_REPORT

      public static final ReportType MINECRAFT_NETWORK_PROTOCOL_ERROR_REPORT
      Mappings:
      Namespace Name Mixin selector
      named MINECRAFT_NETWORK_PROTOCOL_ERROR_REPORT Lnet/minecraft/util/crash/ReportType;MINECRAFT_NETWORK_PROTOCOL_ERROR_REPORT:Lnet/minecraft/util/crash/ReportType;
      intermediary field_52184 Lnet/minecraft/class_9813;field_52184:Lnet/minecraft/class_9813;
      official d Ly;d:Ly;
    • MINECRAFT_CHUNK_IO_ERROR_REPORT

      public static final ReportType MINECRAFT_CHUNK_IO_ERROR_REPORT
      Mappings:
      Namespace Name Mixin selector
      named MINECRAFT_CHUNK_IO_ERROR_REPORT Lnet/minecraft/util/crash/ReportType;MINECRAFT_CHUNK_IO_ERROR_REPORT:Lnet/minecraft/util/crash/ReportType;
      intermediary field_52284 Lnet/minecraft/class_9813;field_52284:Lnet/minecraft/class_9813;
      official e Ly;e:Ly;
  • Constructor Details

  • Method Details

    • chooseNugget

      public String chooseNugget()
      Mappings:
      Namespace Name Mixin selector
      named chooseNugget Lnet/minecraft/util/crash/ReportType;chooseNugget()Ljava/lang/String;
      intermediary method_60927 Lnet/minecraft/class_9813;method_60927()Ljava/lang/String;
      official a Ly;a()Ljava/lang/String;
    • addHeaderAndNugget

      public void addHeaderAndNugget(StringBuilder reportBuilder, List<String> extraInfo)
      Mappings:
      Namespace Name Mixin selector
      named addHeaderAndNugget Lnet/minecraft/util/crash/ReportType;addHeaderAndNugget(Ljava/lang/StringBuilder;Ljava/util/List;)V
      intermediary method_60928 Lnet/minecraft/class_9813;method_60928(Ljava/lang/StringBuilder;Ljava/util/List;)V
      official a Ly;a(Ljava/lang/StringBuilder;Ljava/util/List;)V
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • header

      public String header()
      Returns the value of the header record component.
      Returns:
      the value of the header record component
    • nuggets

      public List<String> nuggets()
      Returns the value of the nuggets record component.
      Returns:
      the value of the nuggets record component