Examples of ChunkCoordinates


Examples of net.minecraft.server.ChunkCoordinates

            world.a(new WorldManager(null, world));
            world.j = mobs ? 1 : 0;
            world.a(mobs, animals);
            // CraftBukkit end
           
            ChunkCoordinates chunkcoordinates = world.m(); // CraftBukkit

            short radius = 196;
            long j = System.currentTimeMillis();
            for (int k = -radius; k <= radius; k += 16) {
                for (int l = -radius; l <= radius; l += 16) {
View Full Code Here

Examples of net.minecraft.server.v1_7_R1.ChunkCoordinates

  {
    if(this.getEntityHandle() == null || NMSUtil.isInHomeArea(this.getEntityHandle()))
      return false;
    else
    {
      ChunkCoordinates chunkCoords = NMSUtil.getChunkCoordinates(this.getEntityHandle());
      Vec3D vec = RandomPositionGenerator.a(this.getEntityHandle(), 16, 7, this.getEntityHandle().world.getVec3DPool().create(chunkCoords.x, chunkCoords.y, chunkCoords.z));
      if(vec == null)
        return false;
      else
      {
View Full Code Here

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

Examples of net.minecraft.src.ChunkCoordinates

  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

Examples of net.minecraft.src.ChunkCoordinates

    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

Examples of net.minecraft.util.ChunkCoordinates

  public boolean canCoordinateBeSpawn(int par1, int par2) {
    return false;
  }

  public ChunkCoordinates getEntrancePortalLocation() {
    return new ChunkCoordinates(50, 5, 0);
  }
View Full Code Here

Examples of net.minecraft.util.ChunkCoordinates

        if (dim == paramEntityPlayer.dimension) {
          int x = ItemSkyPearl.getX(stackToCount);
          int y = ItemSkyPearl.getY(stackToCount);
          int z = ItemSkyPearl.getZ(stackToCount);

          if (wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), false, false) && TileWarpGate.teleportPlayer(paramEntityPlayer, new ChunkCoordinates(x, y, z)))
            wand.consumeAllVis(paramItemStack, paramEntityPlayer, getVisCost(), true, false);
        }
      }

      paramEntityPlayer.clearItemInUse();
View Full Code Here

Examples of net.minecraft.util.ChunkCoordinates

    if (cooldown > 0) {
      pulseStored = true;
      return;
    }

    ChunkCoordinates endCoords = new ChunkCoordinates(x, y, z);
    ChunkCoordinates targetCoords = getBlockTarget();

    if (worldObj.blockExists(x, y, z)) {
      BlockData endData = new BlockData(endCoords);
      BlockData targetData = new BlockData(targetCoords);
View Full Code Here

Examples of net.minecraft.util.ChunkCoordinates

    } else entity.setPosition(entity.posX + vec.x, entity.posY + vec.y, entity.posZ + vec.z);
  }

  public ChunkCoordinates getBlockTarget() {
    ForgeDirection dir = ForgeDirection.getOrientation(orientation);
    return new ChunkCoordinates(xCoord + dir.offsetX, yCoord + dir.offsetY, zCoord + dir.offsetZ);
  }
View Full Code Here

Examples of net.minecraft.util.ChunkCoordinates

    swingMod = SWING_SPEED;
    swingProgress = 1;
  }

  public void swingHit() {
    ChunkCoordinates coords = getTargetLoc();
    ItemStack stack = getStackInSlot(0);
    Item item = stack.getItem();
    Block block = worldObj.getBlock(coords.posX, coords.posY, coords.posZ);

    player.setCurrentItemOrArmor(0, stack);
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.