@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; }
@NetworkCheckHandler public boolean versionOkay(Map<String,String> mods, Side side) { return true; }
@NetworkCheckHandler public boolean checkModList(final @Nonnull Map<String, String> versions, final @Nonnull Side side) { return true; }
@NetworkCheckHandler public boolean checkModLists(Map<String,String> modList, Side side) { return Loader.instance().checkRemoteModList(modList,side); }
@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); }
@NetworkCheckHandler public boolean checkModLists(final Map<String, String> modList, final Side side) { return ((FanDefaultModContainer)this.mContainer).checkModLists(modList, side); }
@NetworkCheckHandler public boolean checkModLists(final Map<String, String> modList, final Side side) { return true; }
@NetworkCheckHandler public boolean checkModList(final Map<String, String> versions, final Side side) { return true; }
@NetworkCheckHandler public boolean networkCheckHandler(Map<String, String> map, Side side) { return true; }
@NetworkCheckHandler public boolean isAcceptable(Map<String,String> modList, Side side) { return true; }
@NetworkCheckHandler public boolean networkCheckHandler(Map<String, String> mods, Side side) { return true; }
@NetworkCheckHandler public static boolean check(Map<String, String> remote, Side side) { return !(side == Side.SERVER && !remote.isEmpty() && !remote.containsKey(Reference.MOD_ID)); }
@NetworkCheckHandler public static boolean networkCheckHandler(Map<String, String> map, Side side) { return true; }
@NetworkCheckHandler public boolean checkNetworkMods(Map mods, Side side) { return true; // server-side only mod }
@NetworkCheckHandler public final boolean networkCheck(Map<String, String> remoteVersions, Side side) { return side.isClient() || remoteVersions.containsKey(Reference.ID); }
@NetworkCheckHandler public boolean checkRemoteVersions(Map<String, String> versions, Side side) { return true; }
@NetworkCheckHandler public boolean checkVersion(Map<String, String> mods, Side side) { return true; }