// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.plugin;

import com.hypixel.hytale.common.plugin.PluginManifest;
import javax.annotation.Nonnull;
import java.nio.file.Path;

public class JavaPluginInit extends PluginInit
{
    @Nonnull
    private final Path file;
    @Nonnull
    private final PluginClassLoader classLoader;
    
    public JavaPluginInit(@Nonnull final PluginManifest pluginManifest, @Nonnull final Path dataDirectory, @Nonnull final Path file, @Nonnull final PluginClassLoader classLoader) {
        super(pluginManifest, dataDirectory);
        this.file = file;
        this.classLoader = classLoader;
    }
    
    @Nonnull
    public Path getFile() {
        return this.file;
    }
    
    @Nonnull
    public PluginClassLoader getClassLoader() {
        return this.classLoader;
    }
    
    @Override
    public boolean isInServerClassPath() {
        return this.classLoader.isInServerClassPath();
    }
}
