Class SideOnlyHandler
java.lang.Object
com.cleanroommc.gradle.api.util.sas.SideOnlyHandler
In-process, deterministic handling of legacy Forge
@SideOnly metadata.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic enumstatic final record -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapplySas(Path input, Path output, Collection<Path> sasFiles) applySas(Path input, Path output, Set<SideOnlyHandler.Target> targets) static SideOnlyHandler.SasLinestatic List<SideOnlyHandler.SasLine> readSas(Collection<Path> files) strip(Path input, Path output, Side targetSide, boolean validateReferences, Collection<String> validatedPrefixes)
-
Field Details
-
SIDE_ONLY_DESCRIPTOR
- See Also:
-
-
Method Details
-
readSas
- Throws:
IOException
-
parseLine
-
applySas
public static SideOnlyHandler.TransformResult applySas(Path input, Path output, Collection<Path> sasFiles) throws IOException - Throws:
IOException
-
applySas
public static SideOnlyHandler.TransformResult applySas(Path input, Path output, Set<SideOnlyHandler.Target> targets) throws IOException - Throws:
IOException
-
strip
public static SideOnlyHandler.TransformResult strip(Path input, Path output, Side targetSide, boolean validateReferences) throws IOException - Throws:
IOException
-
strip
public static SideOnlyHandler.TransformResult strip(Path input, Path output, Side targetSide, boolean validateReferences, Collection<String> validatedPrefixes) throws IOException - Throws:
IOException
-