ForgePatch/fml/common/cpw/mods/fml/common/ModContainer.java

48 lines
1.6 KiB
Java
Raw Normal View History

2012-03-30 14:11:13 +00:00
/*
* The FML Forge Mod Loader suite.
2012-03-30 14:11:13 +00:00
* Copyright (C) 2012 cpw
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
package cpw.mods.fml.common;
2012-04-03 03:06:30 +00:00
import java.util.List;
2012-03-30 14:11:13 +00:00
public interface ModContainer {
boolean wantsPreInit();
boolean wantsPostInit();
void preInit();
void init();
void postInit();
String getName();
void tickStart();
void tickEnd();
boolean matches(Object mod);
2012-03-31 04:43:54 +00:00
String getSource();
Object getMod();
2012-04-01 06:14:14 +00:00
boolean generatesWorld();
IWorldGenerator getWorldGenerator();
int lookupFuelValue(int itemId, int itemDamage);
boolean wantsPickupNotification();
IPickupNotifier getPickupNotifier();
boolean wantsToDispense();
IDispenseHandler getDispenseHandler();
2012-04-03 03:06:30 +00:00
boolean wantsCraftingNotification();
ICraftingHandler getCraftingHandler();
List<String> getDependencies();
List<String> getPreDepends();
List<String> getPostDepends();
2012-04-03 21:04:26 +00:00
boolean wantsNetworkPackets();
INetworkHandler getNetworkHandler();
boolean ownsNetworkChannel(String channel);
2012-03-30 14:11:13 +00:00
}