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 abintermediary net/minecraft/class_6396named net/minecraft/util/SystemDetails
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddGlobalMemoryGroup(GlobalMemory globalMemory) private voidaddGraphicsCardGroup(List<GraphicsCard> graphicsCards) private voidaddHardwareGroup(SystemInfo systemInfo) private voidaddPhysicalMemoryGroup(List<PhysicalMemory> memories) private voidaddProcessorGroup(CentralProcessor centralProcessor) voidaddSection(String name, String value) Adds a section with the givennameandvalue.voidaddSection(String name, Supplier<String> valueSupplier) Adds a section with the givennameand the value supplied byvalueSupplier.private voidaddVirtualMemoryGroup(VirtualMemory virtualMemory) collect()Returns a string representation of the system details.private voidtryAddGroup(String name, Runnable adder) voidwriteTo(StringBuilder stringBuilder) Writes the system details tostringBuilder.
-
Field Details
-
MEBI
public static final long MEBI- See Also:
- Mappings:
Namespace Name Mixin selector official aLab;a:Jintermediary field_33852Lnet/minecraft/class_6396;field_33852:Jnamed MEBILnet/minecraft/util/SystemDetails;MEBI:J
-
GIGA
private static final long GIGA- See Also:
- Mappings:
Namespace Name Mixin selector official bLab;b:Jintermediary field_33853Lnet/minecraft/class_6396;field_33853:Jnamed GIGALnet/minecraft/util/SystemDetails;GIGA:J
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLab;c:Lorg/slf4j/Logger;intermediary field_33854Lnet/minecraft/class_6396;field_33854:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/util/SystemDetails;LOGGER:Lorg/slf4j/Logger;
-
OPERATING_SYSTEM
- Mappings:
Namespace Name Mixin selector official dLab;d:Ljava/lang/String;intermediary field_33855Lnet/minecraft/class_6396;field_33855:Ljava/lang/String;named OPERATING_SYSTEMLnet/minecraft/util/SystemDetails;OPERATING_SYSTEM:Ljava/lang/String;
-
JAVA_VERSION
- Mappings:
Namespace Name Mixin selector official eLab;e:Ljava/lang/String;intermediary field_33856Lnet/minecraft/class_6396;field_33856:Ljava/lang/String;named JAVA_VERSIONLnet/minecraft/util/SystemDetails;JAVA_VERSION:Ljava/lang/String;
-
JVM_VERSION
- Mappings:
Namespace Name Mixin selector official fLab;f:Ljava/lang/String;intermediary field_33857Lnet/minecraft/class_6396;field_33857:Ljava/lang/String;named JVM_VERSIONLnet/minecraft/util/SystemDetails;JVM_VERSION:Ljava/lang/String;
-
sections
- Mappings:
Namespace Name Mixin selector official gLab;g:Ljava/util/Map;intermediary field_33858Lnet/minecraft/class_6396;field_33858:Ljava/util/Map;named sectionsLnet/minecraft/util/SystemDetails;sections:Ljava/util/Map;
-
-
Constructor Details
-
SystemDetails
public SystemDetails()
-
-
Method Details
-
addSection
Adds a section with the givennameandvalue.- Mappings:
Namespace Name Mixin selector official aLab;a(Ljava/lang/String;Ljava/lang/String;)Vintermediary method_37122Lnet/minecraft/class_6396;method_37122(Ljava/lang/String;Ljava/lang/String;)Vnamed addSectionLnet/minecraft/util/SystemDetails;addSection(Ljava/lang/String;Ljava/lang/String;)V
-
addSection
Adds a section with the givennameand the value supplied byvalueSupplier. If an exception is thrown while calling the supplier,ERRis used as the value.- Mappings:
Namespace Name Mixin selector official aLab;a(Ljava/lang/String;Ljava/util/function/Supplier;)Vintermediary method_37123Lnet/minecraft/class_6396;method_37123(Ljava/lang/String;Ljava/util/function/Supplier;)Vnamed addSectionLnet/minecraft/util/SystemDetails;addSection(Ljava/lang/String;Ljava/util/function/Supplier;)V
-
addHardwareGroup
- Mappings:
Namespace Name Mixin selector official aLab;a(Loshi/SystemInfo;)Vintermediary method_37128Lnet/minecraft/class_6396;method_37128(Loshi/SystemInfo;)Vnamed addHardwareGroupLnet/minecraft/util/SystemDetails;addHardwareGroup(Loshi/SystemInfo;)V
-
tryAddGroup
- Mappings:
Namespace Name Mixin selector official aLab;a(Ljava/lang/String;Ljava/lang/Runnable;)Vintermediary method_37121Lnet/minecraft/class_6396;method_37121(Ljava/lang/String;Ljava/lang/Runnable;)Vnamed tryAddGroupLnet/minecraft/util/SystemDetails;tryAddGroup(Ljava/lang/String;Ljava/lang/Runnable;)V
-
addPhysicalMemoryGroup
- Mappings:
Namespace Name Mixin selector official aLab;a(Ljava/util/List;)Vintermediary method_37126Lnet/minecraft/class_6396;method_37126(Ljava/util/List;)Vnamed addPhysicalMemoryGroupLnet/minecraft/util/SystemDetails;addPhysicalMemoryGroup(Ljava/util/List;)V
-
addVirtualMemoryGroup
- Mappings:
Namespace Name Mixin selector official aLab;a(Loshi/hardware/VirtualMemory;)Vintermediary method_37135Lnet/minecraft/class_6396;method_37135(Loshi/hardware/VirtualMemory;)Vnamed addVirtualMemoryGroupLnet/minecraft/util/SystemDetails;addVirtualMemoryGroup(Loshi/hardware/VirtualMemory;)V
-
addGlobalMemoryGroup
- Mappings:
Namespace Name Mixin selector official aLab;a(Loshi/hardware/GlobalMemory;)Vintermediary method_37131Lnet/minecraft/class_6396;method_37131(Loshi/hardware/GlobalMemory;)Vnamed addGlobalMemoryGroupLnet/minecraft/util/SystemDetails;addGlobalMemoryGroup(Loshi/hardware/GlobalMemory;)V
-
addGraphicsCardGroup
- Mappings:
Namespace Name Mixin selector official bLab;b(Ljava/util/List;)Vintermediary method_37137Lnet/minecraft/class_6396;method_37137(Ljava/util/List;)Vnamed addGraphicsCardGroupLnet/minecraft/util/SystemDetails;addGraphicsCardGroup(Ljava/util/List;)V
-
addProcessorGroup
- Mappings:
Namespace Name Mixin selector official aLab;a(Loshi/hardware/CentralProcessor;)Vintermediary method_37130Lnet/minecraft/class_6396;method_37130(Loshi/hardware/CentralProcessor;)Vnamed addProcessorGroupLnet/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 aLab;a(Ljava/lang/StringBuilder;)Vintermediary method_37124Lnet/minecraft/class_6396;method_37124(Ljava/lang/StringBuilder;)Vnamed writeToLnet/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 aLab;a()Ljava/lang/String;intermediary method_37120Lnet/minecraft/class_6396;method_37120()Ljava/lang/String;named collectLnet/minecraft/util/SystemDetails;collect()Ljava/lang/String;
-