Add isHorizontal in DirectionUtils

This commit is contained in:
Sunstrike committed 2013-12-10 15:17:15 +00:00
1 parent caa5f6f3bb
commit dce57405f3
1 file changed
+5
+5
View File
@@ -16,4 +16,9 @@ public class DirectionUtils {
return a != b && a != b.getOpposite() && a != ForgeDirection.UNKNOWN && b != ForgeDirection.UNKNOWN;
}
public static boolean isHorizontal(ForgeDirection a)
{
return a == ForgeDirection.EAST || a == ForgeDirection.NORTH || a == ForgeDirection.SOUTH || a == ForgeDirection.WEST;
}
}