Examples of spawn()


Examples of l2p.gameserver.model.entity.vehicle.L2AirShip.spawn()

      }
      L2AirShip newAirship = new L2AirShip(player.getClan(), "airship", 0);
      AirShipDock ad = AirShipDocksTable.getInstance().getAirShipDockByNpcId(getNpcId());
      L2VehicleManager.getInstance().addStaticItem(newAirship);
      newAirship.SetTrajet1(ad.getArrivalTrajetId(), 0, null, null);
      newAirship.spawn();
      Functions.npcShoutCustomMessage(this, "l2p.gameserver.model.instances.L2AirShipControllerInstance.AirshipSummoned");
      if(_autoDepartureTask != null)
      {
        _autoDepartureTask.cancel(true);
      }
View Full Code Here

Examples of l2p.gameserver.model.entity.vehicle.L2Vehicle.spawn()

          }
        }
        if(boat != null)
        {
          boat.despawn();
          boat.spawn();
        }
        break;
      case admin_boat_reload:
        for(L2Vehicle b : L2VehicleManager.getInstance().getBoats().values())
        {
View Full Code Here

Examples of net.canarymod.api.entity.Entity.spawn()

            // Spawn a mob with Rider
            if (b != null) {
                b.setY(b.getY() + 1);
                try {
                    Entity mob = Canary.factory().getEntityFactory().newEntity(EntityType.valueOf(args[1].toUpperCase()), b.getLocation());
                    if (mob.spawn()) {
                        player.message(Colors.YELLOW + Translator.translateAndFormat("mobspawn spawned", args[1]));
                    }
                    else {
                        player.notice("mobspawn failed");
                    }
View Full Code Here

Examples of net.citizensnpcs.api.npc.NPC.spawn()

        Location prev = npc.isSpawned() ? npc.getEntity().getLocation() : null;
        npc.despawn(DespawnReason.PENDING_RESPAWN);
        npc.setName(name.asString().length() > 100 ? name.asString().substring(0, 100): name.asString());
        if (prev != null)
            npc.spawn(prev);

    }
}
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2BoatInstance.spawn()

      while ((line = lnr.readLine()) != null)
      {
        if (line.trim().length() == 0 || line.startsWith("#"))
          continue;
        L2BoatInstance boat = parseLine(line);
        boat.spawn();
        _staticItems.put(boat.getObjectId(), boat);
        if(Config.DEBUG)
        {
        System.out.println("Boat ID : " + boat.getObjectId());
        }
View Full Code Here

Examples of rtype.entity.Bonus.spawn()

      addBasicEntities();
     
      player1.addEventListeners();
     
      Bonus b = BonusFactory.createBonus(IEntity.BONUS_LIGHTNING_ORB);
      b.spawn(new Vector2f(player1.position.x+100,player1.position.y), DEFAULT_SCROLLING_SPEED, bonus);
     
     
      addControlKeys();
     
     
View Full Code Here

Examples of rtype.entity.BonusBooster.spawn()

       
        pointY-=interspaceY;
        cBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
        bBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointX = ORIGIN_X + interspaceX+ 50;
        pointY = ORIGIN_Y;
       
        pointY-=interspaceY;
View Full Code Here

Examples of rtype.entity.BonusCrystalOrb.spawn()

       
        pointY-=interspaceY;
        mBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
        cBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
        bBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointX = ORIGIN_X + interspaceX+ 50;
View Full Code Here

Examples of rtype.entity.BonusLightningOrb.spawn()

       
    pointX = ORIGIN_X + 50 ;
        pointY = ORIGIN_Y;
   
        pointY-=interspaceY;
        lBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
        rBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
View Full Code Here

Examples of rtype.entity.BonusMagneticOrb.spawn()

       
        pointY-=interspaceY;
        rBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
        mBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
        cBonus.spawn(new Vector2f(pointX,pointY), immobile, layer);
       
        pointY-=interspaceY;
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.