/* * Forge Mod Loader * Copyright (c) 2012-2013 cpw. * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Lesser Public License v2.1 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * * Contributors: * cpw - implementation */ package cpw.mods.fml.common; import java.io.File; import java.security.cert.Certificate; import java.util.List; import java.util.Map; import java.util.Set; import com.google.common.collect.ImmutableMap; import com.google.common.eventbus.EventBus; import cpw.mods.fml.common.versioning.ArtifactVersion; import cpw.mods.fml.common.versioning.VersionRange; /** * The container that wraps around mods in the system. *
* The philosophy is that individual mod implementation technologies should not * impact the actual loading and management of mod code. This interface provides * a mechanism by which we can wrap actual mod code so that the loader and other * facilities can treat mods at arms length. *
* * @author cpw * */ public interface ModContainer { public static enum Disableable { YES, RESTART, NEVER, DEPENDENCIES; } /** * The globally unique modid for this mod */ String getModId(); /** * A human readable name */ String getName(); /** * A human readable version identifier */ String getVersion(); /** * The location on the file system which this mod came from */ File getSource(); /** * The metadata for this mod */ ModMetadata getMetadata(); /** * Attach this mod to it's metadata from the supplied metadata collection */ void bindMetadata(MetadataCollection mc); /** * Set the enabled/disabled state of this mod */ void setEnabledState(boolean enabled); /** * A list of the modids that this mod requires loaded prior to loading */ Set