-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChunkCoordinates.java
More file actions
64 lines (55 loc) · 1.69 KB
/
ChunkCoordinates.java
File metadata and controls
64 lines (55 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class ChunkCoordinates
implements Comparable
{
public ChunkCoordinates()
{
}
public ChunkCoordinates(int i, int j, int k)
{
field_22395_a = i;
field_22394_b = j;
field_22396_c = k;
}
public boolean equals(Object obj)
{
if(!(obj instanceof ChunkCoordinates))
{
return false;
} else
{
ChunkCoordinates chunkcoordinates = (ChunkCoordinates)obj;
return field_22395_a == chunkcoordinates.field_22395_a && field_22394_b == chunkcoordinates.field_22394_b && field_22396_c == chunkcoordinates.field_22396_c;
}
}
public int hashCode()
{
return field_22395_a + field_22396_c << 8 + field_22394_b << 16;
}
public int func_22393_a(ChunkCoordinates chunkcoordinates)
{
if(field_22394_b == chunkcoordinates.field_22394_b)
{
if(field_22396_c == chunkcoordinates.field_22396_c)
{
return field_22395_a - chunkcoordinates.field_22395_a;
} else
{
return field_22396_c - chunkcoordinates.field_22396_c;
}
} else
{
return field_22394_b - chunkcoordinates.field_22394_b;
}
}
public int compareTo(Object obj)
{
return func_22393_a((ChunkCoordinates)obj);
}
public int field_22395_a;
public int field_22394_b;
public int field_22396_c;
}