move in order to reflect new name
All checks were successful
Publish to snapshot maven / build (push) Successful in 13s
All checks were successful
Publish to snapshot maven / build (push) Successful in 13s
This commit is contained in:
parent
39528a7468
commit
9c81fb61cc
|
@ -1,4 +1,4 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher;
|
||||
package org.ecorous.esnesnon.nonsense_remapper;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
|
@ -1,4 +1,4 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher;
|
||||
package org.ecorous.esnesnon.nonsense_remapper;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
import lombok.experimental.UtilityClass;
|
||||
|
@ -12,7 +12,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import static org.ecorous.esnesnon.mojmap_patcher.Constants.GSON;
|
||||
import static org.ecorous.esnesnon.nonsense_remapper.Constants.GSON;
|
||||
|
||||
@UtilityClass
|
||||
public class HttpHelper {
|
|
@ -1,4 +1,4 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher;
|
||||
package org.ecorous.esnesnon.nonsense_remapper;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.*;
|
||||
|
@ -8,15 +8,15 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.concurrent.*;
|
||||
|
||||
import org.ecorous.esnesnon.mojmap_patcher.api.Mapper;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.api.data.MappingData;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.parser.ProguardParser;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.provider.MojmapProvider;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.api.Mapper;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.api.data.MappingData;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.parser.ProguardParser;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.provider.MojmapProvider;
|
||||
import org.objectweb.asm.ClassReader;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.commons.ClassRemapper;
|
||||
|
||||
public class MojMapPatcher {
|
||||
public class NonsenseRemapper {
|
||||
|
||||
public static void run(String minecraftVersion, Path inputJar, Path outputJar, boolean skipMetaInf) throws IOException, InterruptedException {
|
||||
MappingData data = ProguardParser.read(MojmapProvider.get(minecraftVersion).orElseThrow()).reverse();
|
|
@ -1,7 +1,7 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher.api;
|
||||
package org.ecorous.esnesnon.nonsense_remapper.api;
|
||||
|
||||
import org.ecorous.esnesnon.mojmap_patcher.api.data.MappingData;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.api.data.Member;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.api.data.MappingData;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.api.data.Member;
|
||||
import org.objectweb.asm.commons.Remapper;
|
||||
|
||||
public class Mapper extends Remapper {
|
|
@ -1,4 +1,4 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher.api.data;
|
||||
package org.ecorous.esnesnon.nonsense_remapper.api.data;
|
||||
|
||||
import org.objectweb.asm.Type;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher.api.data;
|
||||
package org.ecorous.esnesnon.nonsense_remapper.api.data;
|
||||
|
||||
public record Member(String owner, String name, String descriptor) {
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher.parser;
|
||||
package org.ecorous.esnesnon.nonsense_remapper.parser;
|
||||
|
||||
import org.ecorous.esnesnon.mojmap_patcher.api.data.Member;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.api.data.MappingData;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.api.data.Member;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.api.data.MappingData;
|
||||
|
||||
public class ProguardParser {
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
package org.ecorous.esnesnon.mojmap_patcher.provider;
|
||||
package org.ecorous.esnesnon.nonsense_remapper.provider;
|
||||
|
||||
import com.google.gson.*;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.Constants;
|
||||
import org.ecorous.esnesnon.mojmap_patcher.HttpHelper;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.Constants;
|
||||
import org.ecorous.esnesnon.nonsense_remapper.HttpHelper;
|
||||
|
||||
import java.util.Optional;
|
||||
|
Loading…
Reference in a new issue