Examples of interact()


Examples of net.mcft.copy.betterstorage.attachment.Attachments.interact()

 
  @Override
  public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
    // TODO: See if we can make a pull request to Forge to get PlayerInteractEvent to fire for left click on client.
    Attachments attachments = WorldUtils.get(world, x, y, z, IHasAttachments.class).getAttachments();
    boolean abort = attachments.interact(WorldUtils.rayTrace(player, 1.0F), player, EnumAttachmentInteraction.attack);
    // TODO: Abort block breaking? playerController.resetBlockBreaking doesn't seem to do the job.
  }
 
  @Override
  public boolean hasComparatorInputOverride() { return true; }
View Full Code Here

Examples of net.mcft.copy.betterstorage.attachment.Attachments.interact()

 
  @Override
  public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
    if (world.getBlockMetadata(x, y, z) > 0) y -= 1;
    Attachments attachments = WorldUtils.get(world, x, y, z, IHasAttachments.class).getAttachments();
    boolean abort = attachments.interact(WorldUtils.rayTrace(player, 1.0F), player, EnumAttachmentInteraction.attack);
  }
 
  @Override
  public MovingObjectPosition collisionRayTrace(World world, int x, int y, int z, Vec3 start, Vec3 end) {
    int metadata = world.getBlockMetadata(x, y, z);
View Full Code Here

Examples of org.jboss.as.cli.CommandContext.interact()

                return;
            }

            // Interactive mode
            cmdCtx = initCommandContext(defaultControllerHost, defaultControllerPort, username, password, true, connect);
            cmdCtx.interact();
        } catch(Throwable t) {
            t.printStackTrace();
            exitCode = 1;
        } finally {
            if(cmdCtx != null && cmdCtx.getExitCode() != 0) {
View Full Code Here

Examples of org.jboss.as.cli.CommandContext.interact()

                return;
            }

            // Interactive mode
            cmdCtx = initCommandContext(defaultControllerHost, defaultControllerPort, username, password, true, connect, connectionTimeout);
            cmdCtx.interact();
        } catch(Throwable t) {
            t.printStackTrace();
            exitCode = 1;
        } finally {
            if(cmdCtx != null && cmdCtx.getExitCode() != 0) {
View Full Code Here

Examples of org.jboss.as.cli.CommandContext.interact()

                return;
            }

            // Interactive mode
            cmdCtx = initCommandContext(defaultControllerHost, defaultControllerPort, username, password, true, connect);
            cmdCtx.interact();
        } catch(Throwable t) {
            t.printStackTrace();
            exitCode = 1;
        } finally {
            if(cmdCtx != null && cmdCtx.getExitCode() != 0) {
View Full Code Here

Examples of org.jboss.as.cli.CommandContext.interact()

                return;
            }

            // Interactive mode
            cmdCtx = initCommandContext(defaultControllerHost, defaultControllerPort, username, password, true, connect);
            cmdCtx.interact();
        } catch(Throwable t) {
            t.printStackTrace();
        } finally {
            if(cmdCtx != null) {
                exitCode = cmdCtx.getExitCode();
View Full Code Here

Examples of org.python.util.InteractiveConsole.interact()

        interp.set("bContext", context);
        interp.set("ciContext", ciContext);

        try {
            String version = headers.get("Bundle-Version").toString();
            interp.interact("CIShell Console v" + version + "\n");
        } catch (PyException e) {}
       
        ref = context.getServiceReference(LogReaderService.class.getName());
        reader = (LogReaderService) context.getService(ref);
        if (reader != null) {
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.interact()

      case 1:
        item.interact("Offer");
        break;
      default:
        if (!item.interact("Offer-" + number)) {
          if (item.interact("Offer-X")) {
            sleep(random(1000, 1300));
            methods.inputManager.sendKeys(String.valueOf(number), true);
          }
        }
        break;
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.interact()

      methods.game.openTab(Game.Tab.PRAYER);
      if (methods.game.getTab() == Game.Tab.PRAYER) {
        RSComponent component = methods.interfaces.getComponent(INTERFACE_PRAYER, 8)
            .getComponent(pray.getComponentIndex());
        if (component.isValid()) {
          component.interact(active ? "Activate" : "Deactivate");
        }
      }
    }
    return isPrayerOn(pray) == active;
  }
View Full Code Here

Examples of org.rsbot.script.wrappers.RSComponent.interact()

    if (item == null) {
      return true;
    }
    switch (number) {
      case 0:
        item.interact(itemCount > 1 ? "Offer-All" : "Offer");
        break;
      case 1:
        item.interact("Offer");
        break;
      default:
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.