Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3public class ChunkPosition {
4
5 public final int x;
6 public final int y;
7 public final int z;
8
9 public ChunkPosition(int i, int j, int k) {
10 this.x = i;
11 this.y = j;
12 this.z = k;
13 }
14
15 public boolean equals(Object object) {
16 if (!(object instanceof ChunkPosition)) {
17 return false;
18 } else {
19 ChunkPosition chunkposition = (ChunkPosition) object;
20
21 return chunkposition.x == this.x && chunkposition.y == this.y && chunkposition.z == this.z;
22 }
23 }
24
25 public int hashCode() {
26 return this.x * 8976890 + this.y * 981131 + this.z;
27 }
28}