blob: f8757b204d8d4e00b4876c4bfb6f42a968ad76b4 (
plain)
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
|
package crazypants.enderio.conduit.gas;
import crazypants.util.BlockCoord;
import net.minecraftforge.common.util.ForgeDirection;
public class GasOutput
{
final ForgeDirection dir;
final BlockCoord location;
public GasOutput(BlockCoord bc, ForgeDirection dir)
{
this.dir = dir;
this.location = bc;
}
public int hashCode()
{
int prime = 31;
int result = 1;
result = 31 * result + (this.location == null ? 0 : this.location.hashCode());
result = 31 * result + (this.dir == null ? 0 : this.dir.hashCode());
return result;
}
public boolean equals(Object obj)
{
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
GasOutput other = (GasOutput)obj;
if (this.location == null)
{
if (other.location != null) {
return false;
}
}
else if (!this.location.equals(other.location)) {
return false;
}
if (this.dir != other.dir) {
return false;
}
return true;
}
public String toString()
{
return "GasOutput [dir=" + this.dir + ", location=" + this.location + "]";
}
}
|