Examples of ICommandManager


Examples of net.minecraft.command.ICommandManager

  }

  @EventHandler
  public void serverStart(FMLServerStartingEvent event) {
    MinecraftServer server = MinecraftServer.getServer();
    ICommandManager command = server.getCommandManager();
    ServerCommandManager manager = (ServerCommandManager) command;
        manager.registerCommand(new SetTendencyCommand());
        manager.registerCommand(new MaxResearchCommand());
    manager.registerCommand(new KamiUnlockedCommand());
  }
View Full Code Here

Examples of net.minecraft.command.ICommandManager

  public void serverStart(FMLServerStartingEvent event) {
    if (GeneralSettings.consoleCommandsDisabled)
      return;

    MinecraftServer server = MinecraftServer.getServer(); // Gets current server
    ICommandManager command = server.getCommandManager(); // Gets the command
                                                          // manager to use for
                                                          // server
    ServerCommandManager serverCommand = ((ServerCommandManager) command); // Turns
                                                                           // it
                                                                           // into
View Full Code Here

Examples of net.minecraft.command.ICommandManager

        FMLCommonHandler.instance().bus().register(tickHandlerServer);
    }

    public void initCommands(MinecraftServer server)
    {
        ICommandManager manager = server.getCommandManager();
        if(manager instanceof CommandHandler)
        {
            CommandHandler handler = (CommandHandler)manager;
            handler.registerCommand(new CommandMorph());
        }
View Full Code Here

Examples of net.minecraft.command.ICommandManager

        /* Register our update trigger events */
        registerEvents();
        Log.info("Register events");
        /* Register command hander */
        ICommandManager cm = server.getCommandManager();

        if(cm instanceof CommandHandler) {
          CommandHandler scm = (CommandHandler)cm;
            scm.registerCommand(new DynmapCommand(this));
            scm.registerCommand(new DmapCommand(this));
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandManager

     */
    private void createConditionEditor(Composite parent) throws CoreException {
        PyBreakpoint breakpoint = (PyBreakpoint) getBreakpoint();

        String label = null;
        ICommandManager commandManager = PlatformUI.getWorkbench().getCommandSupport().getCommandManager();
        ICommand command = commandManager.getCommand("org.eclipse.ui.edit.text.contentAssist.proposals"); //$NON-NLS-1$
        if (command != null) {
            List keyBindings = command.getKeySequenceBindings();
            if (keyBindings != null && keyBindings.size() > 0) {
                IKeySequenceBinding binding = (IKeySequenceBinding) keyBindings.get(0);
                label = MessageFormat.format("E&nable Condition", new String[] { binding.getKeySequence().format() }); //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.