本文整理汇总了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.");
}
}
示例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());
}
}
示例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");}
}
示例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");
}
示例5: serverStarting
import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
core.serverStarting(event.getServer());
}
示例6: serverStart
import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStart(FMLServerStartingEvent e){
e.registerServerCommand(new CommandMineTech());
}
示例7: serverStarting
import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event)
{
}
示例8: serverStarting
import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
// Initialize the custom commands
}
示例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.");
}
}
示例10: serverStarting
import cpw.mods.fml.common.Mod.ServerStarting; //导入依赖的package包/类
@ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
}