本文整理汇总了Java中cpw.mods.fml.common.event.FMLLoadCompleteEvent类的典型用法代码示例。如果您正苦于以下问题:Java FMLLoadCompleteEvent类的具体用法?Java FMLLoadCompleteEvent怎么用?Java FMLLoadCompleteEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FMLLoadCompleteEvent类属于cpw.mods.fml.common.event包,在下文中一共展示了FMLLoadCompleteEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onLoadComplete
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void onLoadComplete(FMLLoadCompleteEvent event) {
if (event.getSide() == Side.CLIENT) {
try {
Class clazzGT6API = Class.forName("gregapi.GT_API");
GTVersion = "GT6";
} catch (ClassNotFoundException e) {}
if (GTVersion.equals("GT5")) {
new GT5OreLayerHelper();
new GT5OreSmallHelper();
}
else {
new GT6OreLayerHelper();
new GT6OreSmallHelper();
new GT6OreBedrockHelper();
}
}
}
示例2: loadComplete
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void loadComplete(FMLLoadCompleteEvent event) {
// Fetching runtime messages
try {
log.info("Fetching runtime IMC messages...");
IMCHandler.processIMC(FMLInterModComms.fetchRuntimeMessages(this));
log.info("Fetched runtime IMC messages.");
} catch (Exception e) {
log.error("=============================ERROR!=============================");
log.error("Failed to fetch IMC Runtime messages, printing stacktrace...");
log.error("Please report this as a bug report with the stacktrace, the minecraft log and a mod list + version to: " + issueURL);
log.error("=============================ERROR!=============================");
e.printStackTrace();
}
}
示例3: minus
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void minus(FMLLoadCompleteEvent event) {
for(ResearchCategoryList tab : ResearchCategories.researchCategories.values()){
if(tab != null) {
for (ResearchItem item : tab.research.values()) {
if(item != null){
item.setAutoUnlock();
}
}
}
}
try {
Field warpMap = ThaumcraftApi.class.getDeclaredField("warpMap");
warpMap.setAccessible(true);
HashMap<Object, Integer> warpList = (HashMap<Object, Integer>)warpMap.get(null);
warpList.clear();
}
catch (Exception e){
e.printStackTrace();
}
}
示例4: loadFinished
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Override
public void loadFinished(FMLLoadCompleteEvent event, boolean client) {
if (!client) {
for (PhysisToolMaterial mat : PhysisToolMaterial.materials.values()) {
if (mat.orename.startsWith("ingot")) {
List<ItemStack> ingots = OreDictionary.getOres(mat.orename);
if (ingots.size() > 0) {
ItemStack ingot = ingots.get(0);
ItemStack ringitem = new ItemStack(ring, 1, mat.id);
PhysisToolMaterial.writeMaterialToStack(mat, ringitem);
GameRegistry.addSmelting(ringitem, ingot.copy(), 1.0F);
}
}
}
}
}
示例5: onAvailable
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
if (shouldSortRecipies)
{
RecipeSorter.sortCraftManager();
}
FluidRegistry.validateFluidRegistry();
}
示例6: loadComplete
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void loadComplete(FMLLoadCompleteEvent event) {
log.info("AnnotationRegistry is loaded. Checking states.");
if (LambdaLib.DEBUG) {
log.info(RegistrationManager.INSTANCE.profiler.toString());
}
RegistrationManager.INSTANCE.checkLoadState();
}
示例7: onAvailable
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void onAvailable(FMLLoadCompleteEvent evt)
{
if (shouldSortRecipies)
{
RecipeSorter.sortCraftManager();
}
}
示例8: complete
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void complete(FMLLoadCompleteEvent event) {
if (Util.netIsAvailable()) {
for (ModContainer mod : Loader.instance().getActiveModList()) {
if (mod.getMod() instanceof IUpdateable) {
registerUpdateable((IUpdateable) mod.getMod());
}
}
String[] fetchedNames = new String[updates.size()];
for (FetchedUpdateable update : updates)
fetchedNames[fetchedNames.length - 1] = update.name;
Logger.info("The following mods are out of date: " + StringUtils.join(fetchedNames, ", "));
}
}
示例9: postInit
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void postInit(FMLLoadCompleteEvent event)
{
for (int i = 0; i < Importer.importers.size(); i++) {
Importer.importers.get(i).processImport(recipes);
}
}
示例10: finishModLoading
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@EventHandler
public void finishModLoading(FMLLoadCompleteEvent event)
{
for (int i = 0; i < ConfigRegistry.systems.size(); i++) {
ConfigRegistry.systems.get(i).loadSystem();
}
}
示例11: loadFinished
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
public void loadFinished(FMLLoadCompleteEvent event) {
//RecipeHelper.parseRecipes();
PhysisToolMaterial.buildMaterials();
ItemTrowel.buildRecipes();
PhysisIntegration.loadFinished(event, false);
}
示例12: onAvalible
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Subscribe
public void onAvalible(FMLLoadCompleteEvent evt)
{
if (shouldSortRecipies)
{
RecipeSorter.sortCraftManager();
}
}
示例13: OnForgeLoadFinish
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
/**
* The Forge Load Complete Event.
* Actually , this event is really useless unless you want to
* make some mod for Minecraft GUI.
*
* @param event
*/
public void OnForgeLoadFinish(FMLLoadCompleteEvent event)
{
/*!gen.mod.hook.OnLoadFinish*/
/**/
//TODO:Add your own code here
}
示例14: loadComplete
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
@Mod.EventHandler
public void loadComplete(final FMLLoadCompleteEvent event) {
ExtraUtilsMod.extraUtils.loadComplete(event);
}
示例15: loadComplete
import cpw.mods.fml.common.event.FMLLoadCompleteEvent; //导入依赖的package包/类
public void loadComplete(final FMLLoadCompleteEvent event) {
if (!this.hasSpecialInit) {
this.hasSpecialInit = true;
this.specialInit();
}
}