Class DebugInformation

java.lang.Object
com.simibubi.create.infrastructure.debugInfo.DebugInformation

public class DebugInformation extends Object
Allows for providing easily accessible debugging information. This info can be retrieved with the "/create debuginfo" command. This command copies all information to the clipboard, formatted for a GitHub issue. Addons are welcome to add their own sections. Registration must occur synchronously.
  • Constructor Details

    • DebugInformation

      public DebugInformation()
  • Method Details

    • registerClientInfo

      public static void registerClientInfo(DebugInfoSection section)
    • registerServerInfo

      public static void registerServerInfo(DebugInfoSection section)
    • registerBothInfo

      public static void registerBothInfo(DebugInfoSection section)
    • getClientInfo

      public static List<DebugInfoSection> getClientInfo()
    • getServerInfo

      public static List<DebugInfoSection> getServerInfo()
    • getVersionOfMod

      public static String getVersionOfMod(String id)
    • listAllOtherMods

      public static Collection<InfoElement> listAllOtherMods()
    • listAllGraphicsCards

      public static Collection<InfoElement> listAllGraphicsCards()
    • getTotalRam

      public static String getTotalRam()
    • getCpuInfo

      public static String getCpuInfo()
    • getMcSystemInfo

      @Nullable public static @Nullable String getMcSystemInfo(String key)
      Get a system attribute provided by Minecraft. They can be found in the constructor of SystemReport.
    • getIndent

      public static String getIndent(int depth)
    • tryTrim

      @Nullable public static @Nullable String tryTrim(@Nullable @Nullable String s)