Examples of leaveVehicle()


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

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

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

    for (final Object v : vs) {
      if (v instanceof Entity) {
        ((Entity) v).eject();
        final Entity p = CollectionUtils.getRandom(ps);
        assert p != null;
        p.leaveVehicle();
        ((Entity) v).setPassenger(p);
      } else {
        for (final Entity p : ps) {
          assert p != null : passengers;
          @SuppressWarnings("null")
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.