Package net.minecraft.src

Examples of net.minecraft.src.ChunkCoordinates


         return false;
      }
   }
  
   public static ChunkCoordinates getRandomizedSpawnPoint(WorldProvider provider) {
      ChunkCoordinates spawnPoint = new ChunkCoordinates(0, 64, 0);
      try {
      spawnPoint = (ChunkCoordinates)provider.getClass().getMethod("getRandomizedSpawnPoint").invoke(provider);
    } catch (Throwable t) {
      t.printStackTrace();
    }
View Full Code Here


  public void sendMessage(String msg) {
    SpoutClient.getHandle().ingameGUI.getChatGUI().printChatMessage(msg);
  }

  public void setCompassTarget(Location loc) {
    SpoutClient.getHandle().thePlayer.setSpawnChunk(new ChunkCoordinates(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()), true);
    SpoutClient.getHandle().theWorld.getWorldInfo().setSpawnPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ());
  }
View Full Code Here

    SpoutClient.getHandle().thePlayer.setSpawnChunk(new ChunkCoordinates(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()), true);
    SpoutClient.getHandle().theWorld.getWorldInfo().setSpawnPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ());
  }

  public Location getCompassTarget() {
    ChunkCoordinates coords = SpoutClient.getHandle().thePlayer.getBedLocation();
    return new MutableLocation(coords.posX, coords.posY, coords.posZ);
  }
View Full Code Here

        }
        else
        {
            World world2 = null;
            world2 = new World(theWorld, WorldProvider.getProviderForDimension(thePlayer.dimension));
            ChunkCoordinates chunkcoordinates = world2.getEntrancePortalLocation();
            d = chunkcoordinates.posX;
            thePlayer.posY = chunkcoordinates.posY;
            d1 = chunkcoordinates.posZ;
            thePlayer.setLocationAndAngles(d, thePlayer.posY, d1, 90F, 0.0F);
View Full Code Here

        int i = 0;
        int j = (c * 2) / 16 + 1;
        j *= j;
        net.minecraft.src.IChunkProvider ichunkprovider = theWorld.getChunkProvider();
        ChunkCoordinates chunkcoordinates = theWorld.getSpawnPoint();

        if (thePlayer != null)
        {
            chunkcoordinates.posX = (int)thePlayer.posX;
            chunkcoordinates.posZ = (int)thePlayer.posZ;
View Full Code Here

        if (!theWorld.isRemote && !theWorld.worldProvider.canRespawnHere())
        {
            usePortal(0);
        }

        ChunkCoordinates chunkcoordinates = null;
        ChunkCoordinates chunkcoordinates1 = null;
        boolean flag = true;

        if (thePlayer != null && !par1)
        {
            chunkcoordinates = thePlayer.getSpawnChunk();
View Full Code Here

TOP

Related Classes of net.minecraft.src.ChunkCoordinates

Copyright © 2018 www.massapicom. 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.