Examples of teleportPlayer()


Examples of org.jpokemon.overworld.OverworldService.teleportPlayer()

      PlayerManager.pushJson(player, json);

      OverworldService overworldService = (OverworldService) PlayerManager.getService("overworld");

      // This is sort-of a refresh all
      overworldService.teleportPlayer(player, player.getLocation());
    }
    catch (JSONException e) {
    }
  }
}
View Full Code Here

Examples of org.jpokemon.overworld.OverworldService.teleportPlayer()

    Location nextLocation = nextDoor.getLocation().clone();
    nextLocation.setWidth(1);
    nextLocation.setHeight(1);
    nextLocation.setDirection("down");

    overworldService.teleportPlayer(player, nextLocation);
  }
}
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.