MCPcopy Create free account
hub / github.com/Teneted/Tenet / fileToLine

Method fileToLine

src/main/java/net/minecraftforge/fml/ModList.java:84–91  ·  view source on GitHub ↗
(ModFile mf)

Source from the content-addressed store, hash-verified

82 }
83
84 private String fileToLine(ModFile mf) {
85 return String.format("%-50.50s|%-30.30s|%-30.30s|%-20.20s|%-10.10s|%s", mf.getFileName(),
86 mf.getModInfos().get(0).getDisplayName(),
87 mf.getModInfos().get(0).getModId(),
88 mf.getModInfos().get(0).getVersion(),
89 getModContainerState(mf.getModInfos().get(0).getModId()),
90 ((ModFileInfo)mf.getModFileInfo()).getCodeSigningFingerprint().orElse("NOSIGNATURE"));
91 }
92 private String crashReport() {
93 return "\n"+applyForEachModFile(this::fileToLine).collect(Collectors.joining("\n\t\t", "\t\t", ""));
94 }

Callers

nothing calls this directly

Calls 11

getModContainerStateMethod · 0.95
getModInfosMethod · 0.80
getModFileInfoMethod · 0.80
getDisplayNameMethod · 0.65
getMethod · 0.65
getModIdMethod · 0.65
getVersionMethod · 0.65
formatMethod · 0.45
getFileNameMethod · 0.45
orElseMethod · 0.45

Tested by

no test coverage detected