diff options
Diffstat (limited to 'src/Java/miscutil/enderio/conduit/GregTech/GtOutput.java')
-rw-r--r-- | src/Java/miscutil/enderio/conduit/GregTech/GtOutput.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/Java/miscutil/enderio/conduit/GregTech/GtOutput.java b/src/Java/miscutil/enderio/conduit/GregTech/GtOutput.java new file mode 100644 index 0000000000..afaa97eb00 --- /dev/null +++ b/src/Java/miscutil/enderio/conduit/GregTech/GtOutput.java @@ -0,0 +1,49 @@ +package miscutil.enderio.conduit.GregTech; + +import net.minecraftforge.common.util.ForgeDirection; +import crazypants.util.BlockCoord; + +public class GtOutput { + + final ForgeDirection dir; + final BlockCoord location; + + public GtOutput(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; + GtOutput other = (GtOutput) 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 + "]"; + } + +}
\ No newline at end of file |