当前位置: 首页>>代码示例>>Java>>正文


Java ServerStarting类代码示例

本文整理汇总了Java中cpw.mods.fml.common.Mod.ServerStarting的典型用法代码示例。如果您正苦于以下问题:Java ServerStarting类的具体用法?Java ServerStarting怎么用?Java ServerStarting使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServerStarting类属于cpw.mods.fml.common.Mod包,在下文中一共展示了ServerStarting类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serverStarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent e) {
	for (Command cmd : commands) {
		e.registerServerCommand(cmd);
		logger.info("Command " + cmd.getCommandName() + " registred.");
	}
}
 
开发者ID:oddstr13,项目名称:UrbanCraft-CommandForwarder,代码行数:8,代码来源:CommandForwarder.java

示例2: onServerStart

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void onServerStart(FMLServerStartingEvent event) {
	if (MinecraftServer.getServer().getCommandManager() instanceof ServerCommandManager) {
		((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandSpawn());
		((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandStruc());
		((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandFreeze());
		((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandHeal());
	}
}
 
开发者ID:uzzaco2002,项目名称:secri,代码行数:10,代码来源:Maeme.java

示例3: serverLoad

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
// register commands
public void serverLoad(FMLServerStartingEvent event) {
	event.registerServerCommand(new Commands());
	MinecraftForge.EVENT_BUS.register(new Signs());
	if(!Config.Refrate.equals(0)){
	TickRegistry.registerScheduledTickHandler(new Scheduler(), Side.SERVER);
	}
	else{System.out.println("[INFO] [InvScan] Config value for timer is false! ignoring timer");}
}
 
开发者ID:Banasen,项目名称:InvScan,代码行数:11,代码来源:InvScanLive.java

示例4: serverStarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {

    event.registerServerCommand(new AdminCommand());

    event.registerServerCommand(new RegenerationCommand());

    event.registerServerCommand(new TeleportationCommand());

    event.registerServerCommand(new InfoCommand());

    BlockStone.silverfishChance = silverfishChance;
    apLogger.info("[Apocalyptic] Silverfish spawn chance setted");

    mlt = new MainLifeThread();
    apLogger.info("[Apocalyptic] Main life system loaded");

    PermissionNode.setPermissions();
    apLogger.info("[Apocalyptic] Apocalyptic permissions setted");
}
 
开发者ID:kunik-ru,项目名称:Apocalyptic,代码行数:21,代码来源:Apocalyptic.java

示例5: serverStarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
	core.serverStarting(event.getServer());
}
 
开发者ID:ForestryMC,项目名称:ForestryLegacy,代码行数:5,代码来源:Forestry.java

示例6: serverStart

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStart(FMLServerStartingEvent e){
    e.registerServerCommand(new CommandMineTech());
}
 
开发者ID:aronthor,项目名称:MineTech,代码行数:5,代码来源:MineTechPlus.java

示例7: serverStarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) 
{
    
}
 
开发者ID:kez96,项目名称:Badger-Mod,代码行数:6,代码来源:BadgerMod.java

示例8: serverStarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
	// Initialize the custom commands
}
 
开发者ID:DarthFeder,项目名称:Reliquary,代码行数:5,代码来源:Reliquary.java

示例9: serverstarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverstarting(FMLServerStartingEvent evt) {

    evt.registerServerCommand(new SLPCommand());

    this.l = Logger.getLogger("SLPMod");

    if (httpdEnabled) {

        this.l.info("Starting Simple HTTP Server NOW! - on port "
                + httpdPort);
        SLPMod.httpdStat = EnumChatFormatting.GREEN + "ENABLED (port "
                + httpdPort + ")";
        SLPHTTPServer.start(httpdPort);
        this.l.info("HTTP Server is started.");
        this.l.info("HTTP Server is using simpleframework, simpleframework.org");

    } else {

        SLPMod.httpdStat = EnumChatFormatting.RED + "DISABLED";
        this.l.info("HTTP Server is disabled in the config, will not start.");

    }

}
 
开发者ID:TehSomeLuigi,项目名称:someluigis-peripherals,代码行数:26,代码来源:SLPMod.java

示例10: serverStarting

import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {

}
 
开发者ID:Gaarnik,项目名称:ModHearthstone,代码行数:5,代码来源:ModHearthstone.java


注:本文中的cpw.mods.fml.common.Mod.ServerStarting类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。