Skip to content

Commit

Permalink
Mark MIO-related methods as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Nov 16, 2023
1 parent b327ba0 commit 2d365a3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import net.fabricmc.mappingio.tree.MemoryMappingTree;
import net.fabricmc.mappingio.tree.VisitOrder;
import net.fabricmc.mappingio.tree.VisitableMappingTree;
import org.jetbrains.annotations.ApiStatus;

import cuchaz.enigma.ProgressListener;
import cuchaz.enigma.analysis.index.JarIndex;
Expand Down Expand Up @@ -126,10 +127,12 @@ public MappingsReader getReader() {
}

@Nullable
@ApiStatus.Internal
public net.fabricmc.mappingio.format.MappingFormat getMappingIoCounterpart() {
return mappingIoCounterpart;
}

@ApiStatus.Internal
public boolean hasMappingIoWriter() {
return hasMappingIoWriter;
}
Expand All @@ -142,6 +145,7 @@ public boolean isWritable() {
return writer != null || hasMappingIoWriter;
}

@ApiStatus.Internal
private boolean useMappingIo() {
if (mappingIoCounterpart == null) return false;
return System.getProperty("enigma.use_mappingio", "true").equals("true");
Expand Down

0 comments on commit 2d365a3

Please sign in to comment.