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 named net/minecraft/util/SystemDetails
intermediary net/minecraft/class_6396
official ab
-
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
private void
addStorageSection
(String property) private void
addStorageSection
(String name, Supplier<String> pathSupplier) private void
addVirtualMemoryGroup
(VirtualMemory virtualMemory) collect()
Returns a string representation of the system details.static float
toMebibytes
(long bytes) 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 named MEBI
Lnet/minecraft/util/SystemDetails;MEBI:J
intermediary field_33852
Lnet/minecraft/class_6396;field_33852:J
official a
Lab;a:J
-
GIGA
private static final long GIGA- See Also:
- Mappings:
Namespace Name Mixin selector named GIGA
Lnet/minecraft/util/SystemDetails;GIGA:J
intermediary field_33853
Lnet/minecraft/class_6396;field_33853:J
official b
Lab;b:J
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/util/SystemDetails;LOGGER:Lorg/slf4j/Logger;
intermediary field_33854
Lnet/minecraft/class_6396;field_33854:Lorg/slf4j/Logger;
official c
Lab;c:Lorg/slf4j/Logger;
-
OPERATING_SYSTEM
- Mappings:
Namespace Name Mixin selector named OPERATING_SYSTEM
Lnet/minecraft/util/SystemDetails;OPERATING_SYSTEM:Ljava/lang/String;
intermediary field_33855
Lnet/minecraft/class_6396;field_33855:Ljava/lang/String;
official d
Lab;d:Ljava/lang/String;
-
JAVA_VERSION
- Mappings:
Namespace Name Mixin selector named JAVA_VERSION
Lnet/minecraft/util/SystemDetails;JAVA_VERSION:Ljava/lang/String;
intermediary field_33856
Lnet/minecraft/class_6396;field_33856:Ljava/lang/String;
official e
Lab;e:Ljava/lang/String;
-
JVM_VERSION
- Mappings:
Namespace Name Mixin selector named JVM_VERSION
Lnet/minecraft/util/SystemDetails;JVM_VERSION:Ljava/lang/String;
intermediary field_33857
Lnet/minecraft/class_6396;field_33857:Ljava/lang/String;
official f
Lab;f:Ljava/lang/String;
-
sections
- Mappings:
Namespace Name Mixin selector named sections
Lnet/minecraft/util/SystemDetails;sections:Ljava/util/Map;
intermediary field_33858
Lnet/minecraft/class_6396;field_33858:Ljava/util/Map;
official g
Lab;g:Ljava/util/Map;
-
-
Constructor Details
-
SystemDetails
public SystemDetails()
-
-
Method Details
-
addSection
Adds a section with the givenname
andvalue
.- Mappings:
Namespace Name Mixin selector named addSection
Lnet/minecraft/util/SystemDetails;addSection(Ljava/lang/String;Ljava/lang/String;)V
intermediary method_37122
Lnet/minecraft/class_6396;method_37122(Ljava/lang/String;Ljava/lang/String;)V
official a
Lab;a(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 named addSection
Lnet/minecraft/util/SystemDetails;addSection(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
official a
Lab;a(Ljava/lang/String;Ljava/util/function/Supplier;)V
-
addHardwareGroup
- Mappings:
Namespace Name Mixin selector named addHardwareGroup
Lnet/minecraft/util/SystemDetails;addHardwareGroup(Loshi/SystemInfo;)V
intermediary method_37128
Lnet/minecraft/class_6396;method_37128(Loshi/SystemInfo;)V
official a
Lab;a(Loshi/SystemInfo;)V
-
tryAddGroup
- Mappings:
Namespace Name Mixin selector named tryAddGroup
Lnet/minecraft/util/SystemDetails;tryAddGroup(Ljava/lang/String;Ljava/lang/Runnable;)V
intermediary method_37121
Lnet/minecraft/class_6396;method_37121(Ljava/lang/String;Ljava/lang/Runnable;)V
official a
Lab;a(Ljava/lang/String;Ljava/lang/Runnable;)V
-
toMebibytes
public static float toMebibytes(long bytes) - Mappings:
Namespace Name Mixin selector named toMebibytes
Lnet/minecraft/util/SystemDetails;toMebibytes(J)F
intermediary method_59895
Lnet/minecraft/class_6396;method_59895(J)F
official a
Lab;a(J)F
-
addPhysicalMemoryGroup
- Mappings:
Namespace Name Mixin selector named addPhysicalMemoryGroup
Lnet/minecraft/util/SystemDetails;addPhysicalMemoryGroup(Ljava/util/List;)V
intermediary method_37126
Lnet/minecraft/class_6396;method_37126(Ljava/util/List;)V
official a
Lab;a(Ljava/util/List;)V
-
addVirtualMemoryGroup
- Mappings:
Namespace Name Mixin selector named addVirtualMemoryGroup
Lnet/minecraft/util/SystemDetails;addVirtualMemoryGroup(Loshi/hardware/VirtualMemory;)V
intermediary method_37135
Lnet/minecraft/class_6396;method_37135(Loshi/hardware/VirtualMemory;)V
official a
Lab;a(Loshi/hardware/VirtualMemory;)V
-
addGlobalMemoryGroup
- Mappings:
Namespace Name Mixin selector named addGlobalMemoryGroup
Lnet/minecraft/util/SystemDetails;addGlobalMemoryGroup(Loshi/hardware/GlobalMemory;)V
intermediary method_37131
Lnet/minecraft/class_6396;method_37131(Loshi/hardware/GlobalMemory;)V
official a
Lab;a(Loshi/hardware/GlobalMemory;)V
-
addGraphicsCardGroup
- Mappings:
Namespace Name Mixin selector named addGraphicsCardGroup
Lnet/minecraft/util/SystemDetails;addGraphicsCardGroup(Ljava/util/List;)V
intermediary method_37137
Lnet/minecraft/class_6396;method_37137(Ljava/util/List;)V
official b
Lab;b(Ljava/util/List;)V
-
addProcessorGroup
- Mappings:
Namespace Name Mixin selector named addProcessorGroup
Lnet/minecraft/util/SystemDetails;addProcessorGroup(Loshi/hardware/CentralProcessor;)V
intermediary method_37130
Lnet/minecraft/class_6396;method_37130(Loshi/hardware/CentralProcessor;)V
official a
Lab;a(Loshi/hardware/CentralProcessor;)V
-
addStorageGroup
private void addStorageGroup()- Mappings:
Namespace Name Mixin selector named addStorageGroup
Lnet/minecraft/util/SystemDetails;addStorageGroup()V
intermediary method_59897
Lnet/minecraft/class_6396;method_59897()V
official b
Lab;b()V
-
addStorageSection
- Mappings:
Namespace Name Mixin selector named addStorageSection
Lnet/minecraft/util/SystemDetails;addStorageSection(Ljava/lang/String;)V
intermediary method_59896
Lnet/minecraft/class_6396;method_59896(Ljava/lang/String;)V
official a
Lab;a(Ljava/lang/String;)V
-
addStorageSection
- Mappings:
Namespace Name Mixin selector named addStorageSection
Lnet/minecraft/util/SystemDetails;addStorageSection(Ljava/lang/String;Ljava/util/function/Supplier;)V
intermediary method_59899
Lnet/minecraft/class_6396;method_59899(Ljava/lang/String;Ljava/util/function/Supplier;)V
official b
Lab;b(Ljava/lang/String;Ljava/util/function/Supplier;)V
-
writeTo
Writes the system details tostringBuilder
. This writes the header and the sections (indented by one tab).- Mappings:
Namespace Name Mixin selector named writeTo
Lnet/minecraft/util/SystemDetails;writeTo(Ljava/lang/StringBuilder;)V
intermediary method_37124
Lnet/minecraft/class_6396;method_37124(Ljava/lang/StringBuilder;)V
official a
Lab;a(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 named collect
Lnet/minecraft/util/SystemDetails;collect()Ljava/lang/String;
intermediary method_37120
Lnet/minecraft/class_6396;method_37120()Ljava/lang/String;
official a
Lab;a()Ljava/lang/String;
-