Java Code Examples for net.minecraft.command.CommandHandler

The following examples show how to use net.minecraft.command.CommandHandler. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: EnderStorage   Source File: EnderStorage.java    License: MIT License 4 votes vote down vote up
@EventHandler
public void serverStart(FMLServerStartingEvent event) {
    CommandHandler commandManager = (CommandHandler) event.getServer().getCommandManager();
    commandManager.registerCommand(new CommandEnderStorage());
}
 
Example 2
Source Project: ChickenChunks   Source File: ChunkLoaderProxy.java    License: MIT License 4 votes vote down vote up
public void registerCommands(FMLServerStartingEvent event)
{
    CommandHandler commandManager = (CommandHandler)event.getServer().getCommandManager();
    commandManager.registerCommand(new CommandChunkLoaders());
    commandManager.registerCommand(new CommandDebugInfo());
}
 
Example 3
Source Project: WirelessRedstone   Source File: WirelessRedstoneCore.java    License: MIT License 4 votes vote down vote up
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
    CommandHandler commandManager = (CommandHandler) event.getServer().getCommandManager();
    commandManager.registerCommand(new CommandFreq());
}