move in order to reflect new name
All checks were successful
Publish to snapshot maven / build (push) Successful in 13s

This commit is contained in:
moehreag 2024-05-16 15:30:28 +02:00
parent 39528a7468
commit 9c81fb61cc
8 changed files with 20 additions and 20 deletions

View file

@ -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;

View file

@ -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 {

View file

@ -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();

View file

@ -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 {

View file

@ -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;

View file

@ -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) {
}

View file

@ -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 {

View file

@ -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;