package crazypants.enderio.conduit.liquid; import net.minecraftforge.common.util.ForgeDirection; import com.enderio.core.common.util.BlockCoord; public class LiquidOutput { final ForgeDirection dir; final BlockCoord location; public LiquidOutput(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; LiquidOutput other = (LiquidOutput) 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 "LiquidOutput [dir=" + dir + ", location=" + location + "]"; } }