Java 类cpw.mods.fml.common.network.NetworkCheckHandler 实例源码

项目:AMCore    文件:BaseMod.java   
@NetworkCheckHandler
public final boolean networkCheck(Map<String, String> remoteVersions, Side side) throws InvalidVersionSpecificationException {

    if (!requiresRemoteFrom(side)) {
        return true;
    }
    Mod mod = getClass().getAnnotation(Mod.class);
    String _modid = mod.modid();
    if (!remoteVersions.containsKey(_modid)) {
        return false;
    }
    String remotes = mod.acceptableRemoteVersions();
    if (!"*".equals(remotes)) {

        String remote = remoteVersions.get(_modid);
        if (Strings.isNullOrEmpty(remotes)) {
            return getModVersion().equalsIgnoreCase(remote);
        }

        return ModRange.createFromVersionSpec(_modid, remotes).containsVersion(new ModVersion(_modid, remote));
    }
    return true;
}
项目:j6502    文件:MainClass.java   
@NetworkCheckHandler
public boolean versionOkay(Map<String,String> mods, Side side) {
    return true;
}
项目:ServerObserver    文件:ServerObserverL.java   
@NetworkCheckHandler
public boolean checkModList(final @Nonnull Map<String, String> versions, final @Nonnull Side side) {
    return true;
}
项目:ServerObserver    文件:ServerObserver.java   
@NetworkCheckHandler
public boolean checkModList(final @Nonnull Map<String, String> versions, final @Nonnull Side side) {
    return true;
}
项目:McHeliPrivacyShield    文件:PrivacyShield.java   
@NetworkCheckHandler
public boolean checkModList(final @Nonnull Map<String, String> versions, final @Nonnull Side side) {
    return true;
}
项目:TRHS_Club_Mod_2016    文件:FMLContainer.java   
@NetworkCheckHandler
public boolean checkModLists(Map<String,String> modList, Side side)
{
    return Loader.instance().checkRemoteModList(modList,side);
}
项目:SignPicture    文件:SignPicture.java   
@NetworkCheckHandler
public boolean checkModList(final @Nonnull Map<String, String> versions, final @Nonnull Side side) {
    return true;
}
项目:Avaritiaddons    文件:Avaritiaddons.java   
@NetworkCheckHandler
public boolean matchModVersions(final Map<String, String> remoteVersions, final Side side)
{
    return side == Side.CLIENT ? remoteVersions.containsKey(MOD_ID) : !remoteVersions.containsKey(MOD_ID) || remoteVersions.get(MOD_ID).equals(MOD_VERSION);
}
项目:ThermosRebased    文件:FanModContainer.java   
@NetworkCheckHandler
public boolean checkModLists(final Map<String, String> modList, final Side side) {
    return ((FanDefaultModContainer)this.mContainer).checkModLists(modList, side);
}
项目:ThermosRebased    文件:ImagineModContainer.java   
@NetworkCheckHandler
public boolean checkModLists(final Map<String, String> modList, final Side side) {
    return true;
}
项目:EEWReciever    文件:EEWReciever2.java   
@NetworkCheckHandler
public boolean checkModList(final Map<String, String> versions, final Side side) {
    return true;
}
项目:jarm    文件:OCARM.java   
@NetworkCheckHandler
public boolean versionOkay(Map<String,String> mods, Side side) {
    return true;
}
项目:JAM    文件:JustAnotherMod.java   
@NetworkCheckHandler
public boolean networkCheckHandler(Map<String, String> map, Side side) { 
    return true;
}
项目:CauldronGit    文件:FMLContainer.java   
@NetworkCheckHandler
public boolean checkModLists(Map<String,String> modList, Side side)
{
    return Loader.instance().checkRemoteModList(modList,side);
}
项目:StrangeToolkit    文件:StrangeToolkit.java   
@NetworkCheckHandler
public boolean isAcceptable(Map<String,String> modList, Side side) {
    return true;
}
项目:Config-Patcher    文件:ConfigPatcher.java   
@NetworkCheckHandler
public boolean checkModList(final Map<String, String> versions, final Side side) {
    return true;
}
项目:D3Log    文件:D3Log.java   
@NetworkCheckHandler
public boolean networkCheckHandler(Map<String, String> mods, Side side)
{
    return true;
}
项目:OmniOcular    文件:OmniOcular.java   
@NetworkCheckHandler
public static boolean check(Map<String, String> remote, Side side) {
    return !(side == Side.SERVER && !remote.isEmpty() && !remote.containsKey(Reference.MOD_ID));
}
项目:IsoBlockProjector    文件:IsoBlockProjector.java   
@NetworkCheckHandler
public static boolean networkCheckHandler(Map<String, String> map, Side side) {
    return true;
}
项目:LootAdjuster    文件:LootAdjuster.java   
@NetworkCheckHandler
public boolean checkNetworkMods(Map mods, Side side) {
    return true; // server-side only mod
}
项目:DimensionGuard    文件:DimensionGuard.java   
@NetworkCheckHandler
public final boolean networkCheck(Map<String, String> remoteVersions, Side side)
   {
       return side.isClient() || remoteVersions.containsKey(Reference.ID);
   }
项目:SchematicMetaBlocks    文件:TheMod.java   
@NetworkCheckHandler
public boolean checkRemoteVersions(Map<String, String> versions, Side side)
{
    return true;
}
项目:Cauldron    文件:FMLContainer.java   
@NetworkCheckHandler
public boolean checkModLists(Map<String,String> modList, Side side)
{
    return Loader.instance().checkRemoteModList(modList,side);
}
项目:Cauldron    文件:FMLContainer.java   
@NetworkCheckHandler
public boolean checkModLists(Map<String,String> modList, Side side)
{
    return Loader.instance().checkRemoteModList(modList,side);
}
项目:Cauldron    文件:FMLContainer.java   
@NetworkCheckHandler
public boolean checkModLists(Map<String,String> modList, Side side)
{
    return Loader.instance().checkRemoteModList(modList,side);
}
项目:TFCraft-NEIplugin    文件:TerraFirmaCraftNEIplugin.java   
@NetworkCheckHandler
public boolean checkVersion(Map<String, String> mods, Side side)
{
    return true;
}