Examples of World


Examples of org.bukkit.World

   * If global spawn is enabled, this is the world players should be teleported to
   * @param world The world to set the global spawn to
   */
 
  public static void setGlobalSpawnWorld(String world){
    World w = Bukkit.getWorld(world);
   
    if (w == null){
      LogHelper.logDebug("Plugin tried to set default spawn world to " + world + " but that world does not exist");
      return;
    }
View Full Code Here

Examples of org.bukkit.World

  public static Boolean run(CommandSender sender, String alias, String[] args){
    if (sender instanceof Player && Utils.checkCommandSpam((Player) sender, "cex_seed")){
      return true;
    }
   
    World world = null;

    if (args.length > 1){
      Commands.showCommandHelpAndUsage(sender, "cex_seed", alias);
      return true;
    }

    if (args.length == 0){
      if (sender instanceof Player){
        Player player = (Player) sender;
        world = player.getWorld();
      } else {
        Commands.showCommandHelpAndUsage(sender, "cex_seed", alias);
        return true;
      }
    } else {
      if (sender instanceof Player){
        List<World> matches = ClosestMatches.intellWorld(args[0], ((Player) sender).getWorld());
        if (matches.size() > 0){
          world = matches.get(0);
        }
      } else {
        Commands.showCommandHelpAndUsage(sender, "cex_seed", alias);
        return true;
      }
    }

    if (world == null){
      List<String> worldNames = new ArrayList<String>();
      for (World w : Bukkit.getWorlds()){
        worldNames.add(w.getName());
      }
      LogHelper.showInfo("invalidWorld", sender, ChatColor.RED);
      LogHelper.showInfo("seedInvalidWorldList#####[" + ChatColor.GOLD
          + Utils.implode(worldNames, ChatColor.AQUA + ", " + ChatColor.GOLD), sender);
      return true;
    }

    LogHelper.showInfo("seedShow#####[" + ChatColor.GOLD + world.getName() + ChatColor.AQUA + " #####is#####["
        + ChatColor.GOLD + world.getSeed(), sender);
    return true;
  }
View Full Code Here

Examples of org.bukkit.World

  @Test
  public void setNorthwest_whenCreatingAndNoCornersAreSet_shouldSetCorner1AtTop()
      throws NotNorthwestException, TooSmallException, TooBigException {
    // Arrange

    World worldMock = mock(World.class);
    when(worldMock.getMaxHeight()).thenReturn(256);
    Warzone zoneMock = mock(Warzone.class);
    when(zoneMock.getTeams()).thenReturn(new ArrayList<Team>());
    when(zoneMock.getMonuments()).thenReturn(new ArrayList<Monument>());
    ZoneVolume volume = new ZoneVolume("test", worldMock, zoneMock);
    Location nw = new Location(worldMock, 0, 64, 0);
View Full Code Here

Examples of org.digibots.world.World

        /*
         * GFX
         */
        BranchGroup perspGroup = init3D(tabbedPane, width, height);
       
        this.world = new World(this);
        perspGroup.addChild(world);
       
        /*
         * Input
         */
 
View Full Code Here

Examples of org.drools.command.World

public class ShadowContextTest {

    @Test @Ignore
    public void test1() {
        World world = new WorldImpl();
       
        world.set( "k1", "v1" );
        assertEquals( "v1", world.get( "k1" ) );
/*       
        Context ctx1 = null; //world.createContext( "p1" );
       
        ctx1.set( "k2", "v2" );
               
View Full Code Here

Examples of org.jbox2d.dynamics.World

   */
  public VolcanoWorld(int width,int height){
    super(new Point(0,0),width,height);
    this.background=MEngine.getAssetManager().getSpriteSheet("volcano_background.png");
    this.clouds=MEngine.getAssetManager().getSpriteSheet("clouds.png");
    world=new World(new Vec2(0,-10f),true);
    volcano=new Volcano(this,new Point(250,425));
   
  }
View Full Code Here

Examples of org.menacheri.zombie.domain.World

    startGames(ctx);
  }
 
  public static void startGames(AbstractApplicationContext ctx)
  {
    World world = ctx.getBean(World.class);
    GameRoom room1 = (GameRoom)ctx.getBean("Zombie_ROOM_1");
    GameRoom room2 = (GameRoom)ctx.getBean("Zombie_ROOM_2");
    Task monitor1 = new WorldMonitor(world,room1);
    Task monitor2 = new WorldMonitor(world,room2);
    TaskManagerService taskManager = ctx.getBean(TaskManagerService.class);
View Full Code Here

Examples of org.moparscape.msc.ls.model.World

import org.moparscape.msc.ls.util.DataConversions;

public class PlayerSaveHandler implements PacketHandler {

  public void handlePacket(Packet p, IoSession session) throws Exception {
    World world = (World) session.getAttachment();
    long usernameHash = p.readLong();
    int owner = p.readInt();
    PlayerSave save = Server.getServer().findSave(usernameHash, world);
    if (save == null) {
      System.out.println("Error loading data for: "
View Full Code Here

Examples of org.newdawn.fizzy.World

   
    gc.setTargetFrameRate(Constants.FRAME_RATE);
    gc.setVSync(true);
    worldCenterX = gc.getWidth() / 2;
    worldCenterY = gc.getHeight() / 2;
    world = new World();
    world.setIterations(Constants.ITERATIONS);
    world.setGravity(-10);

    p1 = new Player(p1Name);
    p2 = new Player(p2Name);
View Full Code Here

Examples of org.spout.api.geo.World

  @Override
  public void populate(Chunk chunk, Random random) {
    if (chunk.getY() != 4) {
      return;
    }
    final World world = chunk.getWorld();
    final GlowstonePatchObject glowstone = new GlowstonePatchObject();
    glowstone.setRandom(random);
    for (int amount = getAmount(random); amount > 0; amount--) {
      final int x = chunk.getBlockX(random);
      final int y = random.nextInt(NetherGenerator.HEIGHT);
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.