Package net.fabricmc.mappingio
Interface MappingWriter
- All Superinterfaces:
AutoCloseable,Closeable,MappingVisitor
- All Known Implementing Classes:
EnigmaDirWriter,EnigmaFileWriter,ProGuardFileWriter,SrgFileWriter,Tiny1FileWriter,Tiny2FileWriter
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable MappingWritercreate(Writer writer, MappingFormat format) static @Nullable MappingWritercreate(Path file, MappingFormat format) default booleanvisitEnd()Finish the visitation pass.Methods inherited from interface net.fabricmc.mappingio.MappingVisitor
getFlags, reset, visitClass, visitComment, visitContent, visitDstDesc, visitDstName, visitElementContent, visitField, visitHeader, visitMetadata, visitMethod, visitMethodArg, visitMethodVar, visitNamespaces
-
Method Details
-
create
- Throws:
IOException
-
create
@Nullable static @Nullable MappingWriter create(Writer writer, MappingFormat format) throws IOException - Throws:
IOException
-
visitEnd
Description copied from interface:MappingVisitorFinish the visitation pass.Implementors may throw an exception if a second pass is requested without the
NEEDS_MULTIPLE_PASSESflag having been passed beforehand, but only if that behavior is documented.- Specified by:
visitEndin interfaceMappingVisitor- Returns:
trueif the visitation pass is final,falseif it should be started over.- Throws:
IOException
-