Package net.minecraft.util
Class SystemDetails
java.lang.Object
net.minecraft.util.SystemDetails
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 ab
intermediary net/minecraft/class_6396
named net/minecraft/util/SystemDetails
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addGlobalMemoryGroup
(GlobalMemory globalMemory) private void
addGraphicsCardGroup
(List<GraphicsCard> graphicsCards) private void
addHardwareGroup
(SystemInfo systemInfo) private void
addPhysicalMemoryGroup
(List<PhysicalMemory> memories) private void
addProcessorGroup
(CentralProcessor centralProcessor) void
addSection
(String name, String value) Adds a section with the givenname
andvalue
.void
addSection
(String name, Supplier<String> valueSupplier) Adds a section with the givenname
and the value supplied byvalueSupplier
.private void
addVirtualMemoryGroup
(VirtualMemory virtualMemory) collect()
Returns a string representation of the system details.private void
tryAddGroup
(String name, Runnable adder) void
writeTo
(StringBuilder stringBuilder) Writes the system details tostringBuilder
.
-
Field Details
-
MEBI
public static final long MEBI- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lab;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
Lab;b:J
intermediary field_33853
Lnet/minecraft/class_6396;field_33853:J
named GIGA
Lnet/minecraft/util/SystemDetails;GIGA:J
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lab;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
- Mappings:
Namespace Name Mixin selector official d
Lab;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
- Mappings:
Namespace Name Mixin selector official e
Lab;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
- Mappings:
Namespace Name Mixin selector official f
Lab;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
- Mappings:
Namespace Name Mixin selector official g
Lab;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
Adds a section with the givenname
andvalue
.- Mappings:
Namespace Name Mixin selector official a
Lab;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
Adds a section with the givenname
and the value supplied byvalueSupplier
. If an exception is thrown while calling the supplier,ERR
is used as the value.- Mappings:
Namespace Name Mixin selector official a
Lab;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
- Mappings:
Namespace Name Mixin selector official a
Lab;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
- Mappings:
Namespace Name Mixin selector official a
Lab;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
- Mappings:
Namespace Name Mixin selector official a
Lab;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
- Mappings:
Namespace Name Mixin selector official a
Lab;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
- Mappings:
Namespace Name Mixin selector official a
Lab;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
- Mappings:
Namespace Name Mixin selector official b
Lab;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
- Mappings:
Namespace Name Mixin selector official a
Lab;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
Writes the system details tostringBuilder
. This writes the header and the sections (indented by one tab).- Mappings:
Namespace Name Mixin selector official a
Lab;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
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
Lab;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;
-