Package net.mcreator.io.writer
Class ClassWriter
java.lang.Object
net.mcreator.io.writer.ClassWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
batchWriteClassToFile
(Workspace workspace, Map<File, String> codes, boolean formatAndOrganiseImports, IntConsumer intConsumer) static void
formatAndOrganiseImportsForFiles
(Workspace workspace, Collection<File> files, IntConsumer intConsumer) static void
writeClassToFile
(Workspace workspace, String code, File file, boolean formatAndOrganiseImports)
-
Constructor Details
-
ClassWriter
public ClassWriter()
-
-
Method Details
-
writeClassToFile
-
batchWriteClassToFile
public static void batchWriteClassToFile(@Nullable Workspace workspace, @Nonnull Map<File, String> codes, boolean formatAndOrganiseImports, @Nullable IntConsumer intConsumer) -
formatAndOrganiseImportsForFiles
public static void formatAndOrganiseImportsForFiles(@Nullable Workspace workspace, @Nonnull Collection<File> files, @Nullable IntConsumer intConsumer)
-