    001package cpw.mods.fml.common.modloader;
    002
    003import cpw.mods.fml.common.ModContainer;
    004import cpw.mods.fml.common.discovery.ASMDataTable;
    005import cpw.mods.fml.common.network.NetworkMod;
    006import cpw.mods.fml.common.network.NetworkModHandler;
    007
    008public class ModLoaderNetworkHandler extends NetworkModHandler
    009{
    010
    011    private BaseModProxy baseMod;
    012    public ModLoaderNetworkHandler(ModLoaderModContainer mlmc)
    013    {
    014        super(mlmc, null);
    015    }
    016
    017    public void setBaseMod(BaseModProxy baseMod)
    018    {
    019        this.baseMod = baseMod;
    020    }
    021
    022    @Override
    023    public boolean requiresClientSide()
    024    {
    025        return false;
    026    }
    027
    028    @Override
    029    public boolean requiresServerSide()
    030    {
    031        return false;
    032    }
    033
    034    @Override
    035    public boolean acceptVersion(String version)
    036    {
    037        return baseMod.getVersion().equals(version);
    038    }
    039    @Override
    040    public boolean isNetworkMod()
    041    {
    042        return true;
    043    }
    044}