Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3public class ChunkCoordIntPair {
4
5 public final int x;
6 public final int z;
7
8 public ChunkCoordIntPair(int i, int j) {
9 this.x = i;
10 this.z = j;
11 }
12
13 public static int a(int i, int j) {
14 return (i < 0 ? Integer.MIN_VALUE : 0) | (i & 32767) << 16 | (j < 0 ? '\u8000' : 0) | j & 32767;
15 }
16
17 public int hashCode() {
18 return a(this.x, this.z);
19 }
20
21 public boolean equals(Object object) {
22 ChunkCoordIntPair chunkcoordintpair = (ChunkCoordIntPair) object;
23
24 return chunkcoordintpair.x == this.x && chunkcoordintpair.z == this.z;
25 }
26}