Examples of eject()


Examples of com.xensource.xenapi.VBD.eject()

            if (isoVBD == null) {
                throw new CloudRuntimeException("Unable to find CD-ROM VBD for VM: " + vmName);
            } else {
                // If an ISO is already inserted, eject it
                if (!isoVBD.getEmpty(conn)) {
                    isoVBD.eject(conn);
                }

                // Insert the new ISO
                isoVBD.insert(conn, isoVDI);
            }
View Full Code Here

Examples of org.bukkit.entity.Entity.eject()

        player.setPlayerWeather(WeatherType.DOWNFALL);

        Entity vehicle = player.getVehicle();

        if (vehicle != null && vehicle.getType() == EntityType.BOAT) {
            vehicle.eject();
            vehicle.remove();
        }

        player.teleport(player.getTargetBlock(null, 100).getLocation(), TeleportCause.PLUGIN);
View Full Code Here

Examples of org.bukkit.entity.Entity.eject()

    }
   
    // eject passengers and unmount before transport
    player.eject();
    Entity vehicle = player.getVehicle();
    if (vehicle != null) vehicle.eject();
   
    // Do the teleport
    TeleportMixinCauseEngine.get().setMixinCausedTeleportIncoming(true);
    player.teleport(location);
    TeleportMixinCauseEngine.get().setMixinCausedTeleportIncoming(false);
View Full Code Here

Examples of org.bukkit.entity.Entity.eject()

     */
    public static boolean teleportTo(CommandSender sender, Player player, Location target, boolean allowVehicles) {
        target.getChunk().load(true);
        if (player.getVehicle() != null) {
            Entity vehicle = player.getVehicle();
            vehicle.eject();

            boolean success = player.teleport(target);

            if (!allowVehicles) {
                return success;
View Full Code Here

Examples of org.bukkit.entity.Entity.eject()

      final Object o = delta[0];
      if (o instanceof Entity) {
        ((Entity) o).leaveVehicle();
        final Entity v = CollectionUtils.getRandom(vs);
        assert v != null;
        v.eject();
        v.setPassenger((Entity) o);
      } else if (o instanceof EntityData) {
        for (final Entity v : vs) {
          @SuppressWarnings("null")
          final Entity p = ((EntityData<?>) o).spawn(v.getLocation());
View Full Code Here

Examples of org.jnode.driver.RemovableDeviceAPI.eject()

            }

            if (argLoad.isSet()) {
                api.load();
            } else {
                api.eject();
            }
        } catch (IOException ex) {
            getError().getPrintWriter().format(fmt_failed, dev.getId(), ex.getLocalizedMessage());
            exit(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.