Package net.minecraft.server

Examples of net.minecraft.server.ChunkCoordIntPair


      if ((j1 != 0) || (k1 != 0)) {
        for (int l1 = i - i1; l1 <= i + i1; l1++) {
          for (int i2 = j - i1; i2 <= j + i1; i2++) {
            if(!PlayerChunkMapRef.shouldUnload.invoke(this, l1, i2, k, l, i1)) {
              chunksToLoad.add(new ChunkCoordIntPair(l1, i2));
            }

            if(!PlayerChunkMapRef.shouldUnload.invoke(this, l1 - j1, i2 - k1, i, j, i1)) {
              Object playerchunk = getPlayerChunk(PlayerChunkMapRef.getChunk.invoke(this, l1 - j1, i2 - k1, false));
View Full Code Here


   * @return chunk being loaded soon?
   */
  public static boolean isLoadRequested(Player player, int cx, int cz) {
    List<?> chunkQue = EntityPlayerRef.chunkQueue.get(Conversion.toEntityHandle.convert(player));
    for (Object location : chunkQue) {
      ChunkCoordIntPair loc = (ChunkCoordIntPair) location;
      if (loc.x == cx && loc.z == cz) {
        return true;
      }
    }
    return false;
View Full Code Here

  public static boolean isVec(Object vec3D) {
    return vec3D instanceof Vec3D;
  }

  public static Object newPair(int x, int z) {
    return new ChunkCoordIntPair(x, z);
  }
View Full Code Here

  public static Object newPair(int x, int z) {
    return new ChunkCoordIntPair(x, z);
  }

  public static IntVector2 getPair(Object chunkCoordIntPair) {
    ChunkCoordIntPair pair = (ChunkCoordIntPair) chunkCoordIntPair;
    return new IntVector2(pair.x, pair.z);
  }
View Full Code Here

TOP

Related Classes of net.minecraft.server.ChunkCoordIntPair

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.