// Path: OrionAPI/src/main/java/eu/mikroskeem/orion/api/bytecode/OrionTransformer.java
// public interface OrionTransformer {
//     /**
//      * Transforms class
//      *
//      * @param source             Class bytecode. Might not be present
//      * @param className          Class name
//      * @param remappedClassName  Remapped class name. Might equal to {@code className}, if not remapped.
//      * @return Transformed class or null
//      */
//     @Nullable
//     byte[] transformClass(@Nullable byte[] source, @NotNull String className, @NotNull String remappedClassName);
// }
// 
// Path: OrionCore/src/main/java/eu/mikroskeem/orion/core/launcher/AbstractLauncherService.java
// public abstract class AbstractLauncherService implements LauncherService {
//     private Map<String, Object> fallback$blackboard;
// 
//     @NotNull
//     @Override
//     public Map<String, Object> getBlackBoard() {
//         if(fallback$blackboard == null) fallback$blackboard = new HashMap<>();
//         return fallback$blackboard;
//     }
// 
//     @Override
//     public abstract void registerTransformer(@NotNull Class<? extends OrionTransformer> transformer);
// 
//     @NotNull
//     @Override
//     public abstract Set<String> getClassLoaderExclusions();
// }


import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import eu.mikroskeem.orion.api.bytecode.OrionTransformer;
import eu.mikroskeem.orion.core.launcher.AbstractLauncherService;
import net.minecraft.launchwrapper.IClassTransformer;
import net.minecraft.launchwrapper.Launch;
import org.jetbrains.annotations.NotNull;
/*
 * This file is part of project Orion, licensed under the MIT License (MIT).
 *
 * Copyright (c) 2017-2020 Mark Vainomaa <mikroskeem@mikroskeem.eu>
 * Copyright (c) Contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package eu.mikroskeem.orion.core.launcher.legacylauncher;



public final class LegacyLauncherService extends AbstractLauncherService {
    private Map<Class<? extends OrionTransformer>, Class<? extends IClassTransformer>> convertedTransformers = new HashMap<>();

    @NotNull
    @Override
    public Map<String, Object> getBlackBoard() {
        return Launch.blackboard;
    }

    @Override
// Path: OrionAPI/src/main/java/eu/mikroskeem/orion/api/bytecode/OrionTransformer.java
// public interface OrionTransformer {
//     /**
//      * Transforms class
//      *
//      * @param source             Class bytecode. Might not be present
//      * @param className          Class name
//      * @param remappedClassName  Remapped class name. Might equal to {@code className}, if not remapped.
//      * @return Transformed class or null
//      */
//     @Nullable
//     byte[] transformClass(@Nullable byte[] source, @NotNull String className, @NotNull String remappedClassName);
// }
// 
// Path: OrionCore/src/main/java/eu/mikroskeem/orion/core/launcher/AbstractLauncherService.java
// public abstract class AbstractLauncherService implements LauncherService {
//     private Map<String, Object> fallback$blackboard;
// 
//     @NotNull
//     @Override
//     public Map<String, Object> getBlackBoard() {
//         if(fallback$blackboard == null) fallback$blackboard = new HashMap<>();
//         return fallback$blackboard;
//     }
// 
//     @Override
//     public abstract void registerTransformer(@NotNull Class<? extends OrionTransformer> transformer);
// 
//     @NotNull
//     @Override
//     public abstract Set<String> getClassLoaderExclusions();
// }


// Path: OrionCore/src/main/java/eu/mikroskeem/orion/core/launcher/legacylauncher/LegacyLauncherService.java
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import eu.mikroskeem.orion.api.bytecode.OrionTransformer;
import eu.mikroskeem.orion.core.launcher.AbstractLauncherService;
import net.minecraft.launchwrapper.IClassTransformer;
import net.minecraft.launchwrapper.Launch;
import org.jetbrains.annotations.NotNull;

/*
 * This file is part of project Orion, licensed under the MIT License (MIT).
 *
 * Copyright (c) 2017-2020 Mark Vainomaa <mikroskeem@mikroskeem.eu>
 * Copyright (c) Contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package eu.mikroskeem.orion.core.launcher.legacylauncher;



public final class LegacyLauncherService extends AbstractLauncherService {
    private Map<Class<? extends OrionTransformer>, Class<? extends IClassTransformer>> convertedTransformers = new HashMap<>();

    @NotNull
    @Override
    public Map<String, Object> getBlackBoard() {
        return Launch.blackboard;
    }

    @Override
    public void registerTransformer(@NotNull Class<? extends OrionTransformer> transformer) {