mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 13:10:13 +00:00
50 lines
1.1 KiB
Java
50 lines
1.1 KiB
Java
package crazypants.enderio.conduit.gas;
|
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
import com.enderio.core.common.util.BlockCoord;
|
|
|
|
public class GasOutput {
|
|
|
|
final ForgeDirection dir;
|
|
final BlockCoord location;
|
|
|
|
public GasOutput(BlockCoord bc, ForgeDirection dir) {
|
|
this.dir = dir;
|
|
this.location = bc;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + ((location == null) ? 0 : location.hashCode());
|
|
result = prime * result + ((dir == null) ? 0 : dir.hashCode());
|
|
return result;
|
|
}
|
|
|
|
@Override
|
|
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(location == null) {
|
|
if(other.location != null)
|
|
return false;
|
|
} else if(!location.equals(other.location))
|
|
return false;
|
|
if(dir != other.dir)
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "GasOutput [dir=" + dir + ", location=" + location + "]";
|
|
}
|
|
|
|
} |