Class SystemDetails

java.lang.Object
net.minecraft.util.SystemDetails

public class SystemDetails extends Object
Fetches the hardware and software information to populate crash reports and debug profiles. A custom section can be added by calling addSection(String, String).
Mappings:
Namespace Name
official z
intermediary net/minecraft/class_6396
named net/minecraft/util/SystemDetails
  • Field Details

    • MEBI

      public static final long MEBI
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a:J
      intermediary field_33852 Lnet/minecraft/class_6396;field_33852:J
      named MEBI Lnet/minecraft/util/SystemDetails;MEBI:J
    • GIGA

      private static final long GIGA
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b:J
      intermediary field_33853 Lnet/minecraft/class_6396;field_33853:J
      named GIGA Lnet/minecraft/util/SystemDetails;GIGA:J
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lz;c:Lorg/slf4j/Logger;
      intermediary field_33854 Lnet/minecraft/class_6396;field_33854:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/util/SystemDetails;LOGGER:Lorg/slf4j/Logger;
    • OPERATING_SYSTEM

      private static final String OPERATING_SYSTEM
      Mappings:
      Namespace Name Mixin selector
      official d Lz;d:Ljava/lang/String;
      intermediary field_33855 Lnet/minecraft/class_6396;field_33855:Ljava/lang/String;
      named OPERATING_SYSTEM Lnet/minecraft/util/SystemDetails;OPERATING_SYSTEM:Ljava/lang/String;
    • JAVA_VERSION

      private static final String JAVA_VERSION
      Mappings:
      Namespace Name Mixin selector
      official e Lz;e:Ljava/lang/String;
      intermediary field_33856 Lnet/minecraft/class_6396;field_33856:Ljava/lang/String;
      named JAVA_VERSION Lnet/minecraft/util/SystemDetails;JAVA_VERSION:Ljava/lang/String;
    • JVM_VERSION

      private static final String JVM_VERSION
      Mappings:
      Namespace Name Mixin selector
      official f Lz;f:Ljava/lang/String;
      intermediary field_33857 Lnet/minecraft/class_6396;field_33857:Ljava/lang/String;
      named JVM_VERSION Lnet/minecraft/util/SystemDetails;JVM_VERSION:Ljava/lang/String;
    • sections

      private final Map<String,String> sections
      Mappings:
      Namespace Name Mixin selector
      official g Lz;g:Ljava/util/Map;
      intermediary field_33858 Lnet/minecraft/class_6396;field_33858:Ljava/util/Map;
      named sections Lnet/minecraft/util/SystemDetails;sections:Ljava/util/Map;
  • Constructor Details

    • SystemDetails

      public SystemDetails()
  • Method Details

    • addSection

      public void addSection(String name, String value)
      Adds a section with the given name and value.
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;Ljava/lang/String;)V
      intermediary method_37122 Lnet/minecraft/class_6396;method_37122(Ljava/lang/String;Ljava/lang/String;)V
      named addSection Lnet/minecraft/util/SystemDetails;addSection(Ljava/lang/String;Ljava/lang/String;)V
    • addSection

      public void addSection(String name, Supplier<String> valueSupplier)
      Adds a section with the given name and the value supplied by valueSupplier. If an exception is thrown while calling the supplier, ERR is used as the value.
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;Ljava/util/function/Supplier;)V
      intermediary method_37123 Lnet/minecraft/class_6396;method_37123(Ljava/lang/String;Ljava/util/function/Supplier;)V
      named addSection Lnet/minecraft/util/SystemDetails;addSection(Ljava/lang/String;Ljava/util/function/Supplier;)V
    • addHardwareGroup

      private void addHardwareGroup(SystemInfo systemInfo)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Loshi/SystemInfo;)V
      intermediary method_37128 Lnet/minecraft/class_6396;method_37128(Loshi/SystemInfo;)V
      named addHardwareGroup Lnet/minecraft/util/SystemDetails;addHardwareGroup(Loshi/SystemInfo;)V
    • tryAddGroup

      private void tryAddGroup(String name, Runnable adder)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;Ljava/lang/Runnable;)V
      intermediary method_37121 Lnet/minecraft/class_6396;method_37121(Ljava/lang/String;Ljava/lang/Runnable;)V
      named tryAddGroup Lnet/minecraft/util/SystemDetails;tryAddGroup(Ljava/lang/String;Ljava/lang/Runnable;)V
    • addPhysicalMemoryGroup

      private void addPhysicalMemoryGroup(List<PhysicalMemory> memories)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/util/List;)V
      intermediary method_37126 Lnet/minecraft/class_6396;method_37126(Ljava/util/List;)V
      named addPhysicalMemoryGroup Lnet/minecraft/util/SystemDetails;addPhysicalMemoryGroup(Ljava/util/List;)V
    • addVirtualMemoryGroup

      private void addVirtualMemoryGroup(VirtualMemory virtualMemory)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Loshi/hardware/VirtualMemory;)V
      intermediary method_37135 Lnet/minecraft/class_6396;method_37135(Loshi/hardware/VirtualMemory;)V
      named addVirtualMemoryGroup Lnet/minecraft/util/SystemDetails;addVirtualMemoryGroup(Loshi/hardware/VirtualMemory;)V
    • addGlobalMemoryGroup

      private void addGlobalMemoryGroup(GlobalMemory globalMemory)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Loshi/hardware/GlobalMemory;)V
      intermediary method_37131 Lnet/minecraft/class_6396;method_37131(Loshi/hardware/GlobalMemory;)V
      named addGlobalMemoryGroup Lnet/minecraft/util/SystemDetails;addGlobalMemoryGroup(Loshi/hardware/GlobalMemory;)V
    • addGraphicsCardGroup

      private void addGraphicsCardGroup(List<GraphicsCard> graphicsCards)
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b(Ljava/util/List;)V
      intermediary method_37137 Lnet/minecraft/class_6396;method_37137(Ljava/util/List;)V
      named addGraphicsCardGroup Lnet/minecraft/util/SystemDetails;addGraphicsCardGroup(Ljava/util/List;)V
    • addProcessorGroup

      private void addProcessorGroup(CentralProcessor centralProcessor)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Loshi/hardware/CentralProcessor;)V
      intermediary method_37130 Lnet/minecraft/class_6396;method_37130(Loshi/hardware/CentralProcessor;)V
      named addProcessorGroup Lnet/minecraft/util/SystemDetails;addProcessorGroup(Loshi/hardware/CentralProcessor;)V
    • writeTo

      public void writeTo(StringBuilder stringBuilder)
      Writes the system details to stringBuilder. This writes the header and the sections (indented by one tab).
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/StringBuilder;)V
      intermediary method_37124 Lnet/minecraft/class_6396;method_37124(Ljava/lang/StringBuilder;)V
      named writeTo Lnet/minecraft/util/SystemDetails;writeTo(Ljava/lang/StringBuilder;)V
    • collect

      public String collect()
      Returns a string representation of the system details.

      Sections are separated by newlines, and each section consists of the name, a colon, a space, and the value. No indent is added by this method.

      Returns:
      a string representation of the system details
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a()Ljava/lang/String;
      intermediary method_37120 Lnet/minecraft/class_6396;method_37120()Ljava/lang/String;
      named collect Lnet/minecraft/util/SystemDetails;collect()Ljava/lang/String;