-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split mapping formats into separate files
- Loading branch information
1 parent
f7c93f1
commit 162e209
Showing
28 changed files
with
1,433 additions
and
1,217 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
.../mapping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/CsrgMappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.PairedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.CsrgMappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.CsrgMappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum CsrgMappingFormat implements MappingFormat.Classified<PairedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "csrg"; | ||
} | ||
|
||
@Override | ||
public @NotNull CsrgMappingProcessor getProcessor() { | ||
return CsrgMappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull CsrgMappingGenerator getGenerator() { | ||
return CsrgMappingGenerator.INSTANCE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
.../mapping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/PdmeMappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.PairedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.PdmeMappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.PdmeMappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum PdmeMappingFormat implements MappingFormat.Classified<PairedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "pdme"; | ||
} | ||
|
||
@Override | ||
public @NotNull PdmeMappingProcessor getProcessor() { | ||
return PdmeMappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull PdmeMappingGenerator getGenerator() { | ||
return PdmeMappingGenerator.INSTANCE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/ProguardMappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.PairedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.ProguardMappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.ProguardMappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum ProguardMappingFormat implements MappingFormat.Classified<PairedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "proguard"; | ||
} | ||
|
||
@Override | ||
public @NotNull ProguardMappingProcessor getProcessor() { | ||
return ProguardMappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull ProguardMappingGenerator getGenerator() { | ||
return ProguardMappingGenerator.INSTANCE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...s/mapping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/SrgMappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.PairedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.SrgMappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.SrgMappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum SrgMappingFormat implements MappingFormat.Classified<PairedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "srg"; | ||
} | ||
|
||
@Override | ||
public @NotNull SrgMappingProcessor getProcessor() { | ||
return SrgMappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull SrgMappingGenerator getGenerator() { | ||
return SrgMappingGenerator.INSTANCE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...apping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/TinyV1MappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.NamespacedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.TinyV1MappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.TinyV1MappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum TinyV1MappingFormat implements MappingFormat.Classified<NamespacedMapping> {// TODO: support properties | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "tiny-v1"; | ||
} | ||
|
||
@Override | ||
public @NotNull TinyV1MappingProcessor getProcessor() { | ||
return TinyV1MappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull TinyV1MappingGenerator getGenerator() { | ||
return TinyV1MappingGenerator.INSTANCE; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...apping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/TinyV2MappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.NamespacedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.TinyV2MappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.TinyV2MappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum TinyV2MappingFormat implements MappingFormat.Classified<NamespacedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "tiny-v2"; | ||
} | ||
|
||
@Override | ||
public char getCommentChar() { | ||
return '\0'; | ||
} | ||
|
||
@Override | ||
public @NotNull TinyV2MappingProcessor getProcessor() { | ||
return TinyV2MappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull TinyV2MappingGenerator getGenerator() { | ||
return TinyV2MappingGenerator.INSTANCE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...apping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/TsrgV1MappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.PairedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.TsrgV1MappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.TsrgV1MappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum TsrgV1MappingFormat implements MappingFormat.Classified<PairedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "tsrg-v1"; | ||
} | ||
|
||
@Override | ||
public @NotNull TsrgV1MappingProcessor getProcessor() { | ||
return TsrgV1MappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull TsrgV1MappingGenerator getGenerator() { | ||
return TsrgV1MappingGenerator.INSTANCE; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...apping-api/src/main/java/cn/maxpixel/mcdecompiler/mapping/format/TsrgV2MappingFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cn.maxpixel.mcdecompiler.mapping.format; | ||
|
||
import cn.maxpixel.mcdecompiler.mapping.NamespacedMapping; | ||
import cn.maxpixel.mcdecompiler.mapping.generator.TsrgV2MappingGenerator; | ||
import cn.maxpixel.mcdecompiler.mapping.processor.TsrgV2MappingProcessor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public enum TsrgV2MappingFormat implements MappingFormat.Classified<NamespacedMapping> { | ||
INSTANCE; | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "tsrg-v2"; | ||
} | ||
|
||
@Override | ||
public @NotNull TsrgV2MappingProcessor getProcessor() { | ||
return TsrgV2MappingProcessor.INSTANCE; | ||
} | ||
|
||
@Override | ||
public @NotNull TsrgV2MappingGenerator getGenerator() { | ||
return TsrgV2MappingGenerator.INSTANCE; | ||
} | ||
} |
Oops, something went wrong.