public boolean isVanillaAccepted(Side from) { boolean result = true; for (Entry<ModContainer, NetworkModHolder> e : registry.entrySet()) { result &= e.getValue().acceptsVanilla(from); } return result; }
public Map<ModContainer,NetworkModHolder> registry() { return ImmutableMap.copyOf(registry); }
/** * INTERNAL method for registering a mod as a network capable thing * @param fmlModContainer The fml mod container * @param clazz a class * @param remoteVersionRange the acceptable remote range * @param asmHarvestedData internal data */ public void register(ModContainer fmlModContainer, Class<?> clazz, String remoteVersionRange, ASMDataTable asmHarvestedData) { NetworkModHolder networkModHolder = new NetworkModHolder(fmlModContainer, clazz, remoteVersionRange, asmHarvestedData); registry.put(fmlModContainer, networkModHolder); networkModHolder.testVanillaAcceptance(); }
/** * INTERNAL method for registering a mod as a network capable thing * @param fmlModContainer The fml mod container * @param clazz a class * @param remoteVersionRange the acceptable remote range * @param asmHarvestedData internal data */ public void register(ModContainer fmlModContainer, Class<?> clazz, String remoteVersionRange, ASMDataTable asmHarvestedData) { NetworkModHolder networkModHolder = new NetworkModHolder(fmlModContainer, clazz, remoteVersionRange, asmHarvestedData); registry.put(fmlModContainer, networkModHolder); }